This commit is contained in:
Michael Kerrisk 2008-07-12 11:01:09 +00:00
parent d7ba51f9c5
commit 84811e86e2
3 changed files with 3 additions and 3 deletions

View File

@ -586,7 +586,7 @@ was specified.
.\" getpid(2) returns current->tgid; .\" getpid(2) returns current->tgid;
On success, the thread ID of the child process is returned On success, the thread ID of the child process is returned
in the caller's thread of execution. in the caller's thread of execution.
On failure, a \-1 will be returned On failure, \-1 is returned
in the caller's context, no child process will be created, and in the caller's context, no child process will be created, and
.I errno .I errno
will be set appropriately. will be set appropriately.

View File

@ -107,7 +107,7 @@ to clear the external variable
.I errno .I errno
prior to the prior to the
call, then check it afterwards to determine call, then check it afterwards to determine
if a \-1 is an error or a legitimate value. if \-1 is an error or a legitimate value.
The The
.BR setpriority () .BR setpriority ()
call returns 0 if there is no error, or call returns 0 if there is no error, or

View File

@ -68,7 +68,7 @@ It will truncate the contents (to a length of
characters), in case the buffer is too small to hold all of the contents. characters), in case the buffer is too small to hold all of the contents.
.SH "RETURN VALUE" .SH "RETURN VALUE"
The call returns the count of characters placed in the buffer The call returns the count of characters placed in the buffer
if it succeeds, or a \-1 if an error occurs, placing the error if it succeeds, or \-1 if an error occurs, placing the error
code in code in
.IR errno . .IR errno .
.SH ERRORS .SH ERRORS