]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/man/man2/shmat.2
xnu-517.tar.gz
[apple/xnu.git] / bsd / man / man2 / shmat.2
index 7ed9d04490b76ee5b5c6750db1c0d5e8ce25bbbc..be77bdce0baab2d23e2c1c0198ff292a05f0d07d 100644 (file)
@@ -62,11 +62,9 @@ the system will round the address down to a multiple of SHMLBA bytes
 (SHMLBA is defined in
 .Aq Pa sys/shm.h
 ).
 (SHMLBA is defined in
 .Aq Pa sys/shm.h
 ).
-
 A shared memory segment can be mapped read-only by specifying the
 SHM_RDONLY flag in
 .Fa shmflg .
 A shared memory segment can be mapped read-only by specifying the
 SHM_RDONLY flag in
 .Fa shmflg .
-
 .Fn shmdt
 unmaps the shared memory segment that is currently mapped at
 .Fa shmaddr
 .Fn shmdt
 unmaps the shared memory segment that is currently mapped at
 .Fa shmaddr
@@ -91,7 +89,7 @@ is set to indicate the error.
 .Fn shmat
 will fail if:
 .Bl -tag -width Er
 .Fn shmat
 will fail if:
 .Bl -tag -width Er
-.It Bq Er EACCESS
+.It Bq Er EACCES
 The calling process has no permission to access this shared memory segment.
 .It Bq Er ENOMEM
 There is not enough available data space for the calling process to
 The calling process has no permission to access this shared memory segment.
 .It Bq Er ENOMEM
 There is not enough available data space for the calling process to
@@ -99,19 +97,18 @@ map the shared memory segment.
 .It Bq Er EINVAL
 .Fa shmid
 is not a valid shared memory identifier.
 .It Bq Er EINVAL
 .Fa shmid
 is not a valid shared memory identifier.
-
 .Fa shmaddr
 specifies an illegal address.
 .It Bq Er EMFILE
 The number of shared memory segments has reached the system-wide limit.
 .El
 .Fa shmaddr
 specifies an illegal address.
 .It Bq Er EMFILE
 The number of shared memory segments has reached the system-wide limit.
 .El
-
 .Fn shmdt
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EINVAL
 .Fa shmaddr
 is not the start address of a mapped shared memory segment.
 .Fn shmdt
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EINVAL
 .Fa shmaddr
 is not the start address of a mapped shared memory segment.
+.El
 .Sh SEE ALSO
 .Xr shmctl 2 ,
 .Xr shmget 2 ,
 .Sh SEE ALSO
 .Xr shmctl 2 ,
 .Xr shmget 2 ,