summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-02 16:37:11 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-02 16:37:11 (GMT)
commit7e3535cbbd1d5e4b0d182557d91ac2c60bc1ef81 (patch)
treefd0934169cd75358087d980ba78bd28889175bce /Modules
parent26a69db4c7d50299178c24b6f5e9b59dd12a6f66 (diff)
downloadcpython-7e3535cbbd1d5e4b0d182557d91ac2c60bc1ef81.zip
cpython-7e3535cbbd1d5e4b0d182557d91ac2c60bc1ef81.tar.gz
cpython-7e3535cbbd1d5e4b0d182557d91ac2c60bc1ef81.tar.bz2
Added documentation to the docstrings for the W*() functions that take
a process exit status as a parameter.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3226043..821a3cd 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2851,7 +2851,7 @@ posix_strerror(self, args)
#ifdef WIFSTOPPED
static char posix_WIFSTOPPED__doc__[] =
"WIFSTOPPED(status) -> Boolean\n\
-See Unix documentation.";
+Return true if the process returning 'status' was stopped.";
static PyObject *
posix_WIFSTOPPED(self, args)
@@ -2879,7 +2879,7 @@ posix_WIFSTOPPED(self, args)
#ifdef WIFSIGNALED
static char posix_WIFSIGNALED__doc__[] =
"WIFSIGNALED(status) -> Boolean\n\
-See Unix documentation.";
+Retrun true if the process returning 'status' was terminated by a signal.";
static PyObject *
posix_WIFSIGNALED(self, args)
@@ -2907,7 +2907,8 @@ posix_WIFSIGNALED(self, args)
#ifdef WIFEXITED
static char posix_WIFEXITED__doc__[] =
"WIFEXITED(status) -> Boolean\n\
-See Unix documentation.";
+Return true if the process returning 'status' exited using the exit()\n\
+system call.";
static PyObject *
posix_WIFEXITED(self, args)
@@ -2935,7 +2936,7 @@ posix_WIFEXITED(self, args)
#ifdef WEXITSTATUS
static char posix_WEXITSTATUS__doc__[] =
"WEXITSTATUS(status) -> integer\n\
-See Unix documentation.";
+Return the process return code from 'status'.";
static PyObject *
posix_WEXITSTATUS(self, args)
@@ -2963,7 +2964,8 @@ posix_WEXITSTATUS(self, args)
#ifdef WTERMSIG
static char posix_WTERMSIG__doc__[] =
"WTERMSIG(status) -> integer\n\
-See Unix documentation.";
+Return the signal that terminated the process that provided the 'status'\n\
+value.";
static PyObject *
posix_WTERMSIG(self, args)
@@ -2991,7 +2993,7 @@ posix_WTERMSIG(self, args)
#ifdef WSTOPSIG
static char posix_WSTOPSIG__doc__[] =
"WSTOPSIG(status) -> integer\n\
-See Unix documentation.";
+Return the signal that stopped the process that provided the 'status' value.";
static PyObject *
posix_WSTOPSIG(self, args)