diff --git a/man2/shmget.2 b/man2/shmget.2 index 56d525d4a..331ab3f58 100644 --- a/man2/shmget.2 +++ b/man2/shmget.2 @@ -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