mirror of https://github.com/mkerrisk/man-pages
ioctl_console.2, msgctl.2, msgget.2, msgop.2, semctl.2, semget.2, semop.2, shm_open.3, shmget.2, shmop.2: ERRORS: remove redundant statement that 'errno' is set
This is implied in every other manual page. There is no need to state it explicitly in these pages. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d9b17b7371
commit
f2fa055834
|
@ -806,8 +806,6 @@ On failure, \-1 is returned, and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
.I errno
|
||||
may take on these values:
|
||||
.TP
|
||||
.B EBADF
|
||||
The file descriptor is invalid.
|
||||
|
|
|
@ -335,9 +335,6 @@ On failure, \-1 is returned and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
is set to one of the following:
|
||||
.TP
|
||||
.B EACCES
|
||||
The argument
|
||||
|
|
|
@ -151,9 +151,6 @@ On failure, \-1 is returned, and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
is set to one of the following values:
|
||||
.TP
|
||||
.B EACCES
|
||||
A message queue exists for
|
||||
|
|
10
man2/msgop.2
10
man2/msgop.2
|
@ -348,11 +348,8 @@ On failure, both functions return \-1, and set
|
|||
.I errno
|
||||
to indicate the error.
|
||||
.SH ERRORS
|
||||
When
|
||||
.BR msgsnd ()
|
||||
fails,
|
||||
.I errno
|
||||
will be set to one among the following values:
|
||||
can fail with the following errors:
|
||||
.TP
|
||||
.B EACCES
|
||||
The calling process does not have write permission on the message queue,
|
||||
|
@ -395,11 +392,8 @@ The system does not have enough memory to make a copy of the
|
|||
message pointed to by
|
||||
.IR msgp .
|
||||
.PP
|
||||
When
|
||||
.BR msgrcv ()
|
||||
fails,
|
||||
.I errno
|
||||
will be set to one among the following values:
|
||||
can fail with the following errors:
|
||||
.TP
|
||||
.B E2BIG
|
||||
The message text length is greater than
|
||||
|
|
|
@ -449,9 +449,6 @@ returns \-1 and sets
|
|||
.I errno
|
||||
to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
will be set to one of the following:
|
||||
.TP
|
||||
.B EACCES
|
||||
The argument
|
||||
|
|
|
@ -162,9 +162,6 @@ On failure, \-1 is returned, and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
will be set to one of the following:
|
||||
.TP
|
||||
.B EACCES
|
||||
A semaphore set exists for
|
||||
|
|
|
@ -306,9 +306,6 @@ On failure, they return \-1, and set
|
|||
.I errno
|
||||
to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
is set to one of the following:
|
||||
.TP
|
||||
.B E2BIG
|
||||
The argument
|
||||
|
|
|
@ -219,9 +219,6 @@ On error, \-1 is returned, and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
is set to one of the following:
|
||||
.TP
|
||||
.B EACCES
|
||||
The user does not have permission to access the
|
||||
|
|
|
@ -178,11 +178,8 @@ returns 0; on error \-1 is returned, and
|
|||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
When
|
||||
.BR shmat ()
|
||||
fails,
|
||||
.I errno
|
||||
is set to one of the following:
|
||||
can fail with one of the following errors:
|
||||
.TP
|
||||
.B EACCES
|
||||
The calling process does not have the required permissions for
|
||||
|
@ -210,11 +207,9 @@ was NULL.
|
|||
.B ENOMEM
|
||||
Could not allocate memory for the descriptor or for the page tables.
|
||||
.PP
|
||||
When
|
||||
.BR shmdt ()
|
||||
fails,
|
||||
.I errno
|
||||
is set as follows:
|
||||
can fail with one of the following errors:
|
||||
.TP
|
||||
.B EINVAL
|
||||
There is no shared memory segment attached at
|
||||
|
|
|
@ -170,18 +170,13 @@ was specified, in which case a new, distinct object is created).
|
|||
On success,
|
||||
.BR shm_open ()
|
||||
returns a file descriptor (a nonnegative integer).
|
||||
On failure,
|
||||
.BR shm_open ()
|
||||
returns \-1.
|
||||
On sucess,
|
||||
.BR shm_unlink ()
|
||||
returns 0 on success, or \-1 on error.
|
||||
returns 0.
|
||||
On failure, both functions return \-1 and set
|
||||
.I errno
|
||||
to indicate the error.
|
||||
.SH ERRORS
|
||||
On failure,
|
||||
.I errno
|
||||
is set to indicate the error.
|
||||
Values which may appear in
|
||||
.I errno
|
||||
include the following:
|
||||
.TP
|
||||
.B EACCES
|
||||
Permission to
|
||||
|
|
Loading…
Reference in New Issue