shmget.2: Rewrite RETURN VALUE and mention that 'errno' is set on error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-19 08:34:45 +02:00
parent eb20a4fb40
commit 716c8c3f00
1 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@
.\" Language and formatting clean-ups
.\" Added notes on /proc files
.\"
.TH SHMGET 2 2012-05-31 "Linux" "Linux Programmer's Manual"
.TH SHMGET 2 2013-04-19 "Linux" "Linux Programmer's Manual"
.SH NAME
shmget \- allocates a System V shared memory segment
.SH SYNOPSIS
@ -178,9 +178,10 @@ is set to the current time.
If the shared memory segment already exists, the permissions are
verified, and a check is made to see if it is marked for destruction.
.SH RETURN VALUE
A valid segment identifier,
.IR shmid ,
is returned on success, \-1 on error.
On success, a valid shared memory identifier is returned.
On errir, \-1 is returned, and
.I errno
is set to indicate the error.
.SH ERRORS
On failure,
.I errno