mirror of https://github.com/mkerrisk/man-pages
The -1 error return of shmat() should be cast "(void *)".
This commit is contained in:
parent
c1164764b0
commit
eeabb34e30
15
man2/shmop.2
15
man2/shmop.2
|
@ -175,12 +175,17 @@ all attached shared memory segments are detached from the process.
|
|||
.SH "RETURN VALUE"
|
||||
On success
|
||||
.BR shmat ()
|
||||
returns the address of the attached shared memory segment, and
|
||||
.BR shmdt ()
|
||||
returns 0.
|
||||
On failure both functions return \-1 with
|
||||
returns the address of the attached shared memory segment; on error
|
||||
.I (void *) \-1
|
||||
is returned, and
|
||||
.I errno
|
||||
indicating the error.
|
||||
is set to indicate the cause of the error.
|
||||
|
||||
On success
|
||||
.BR shmdt ()
|
||||
returns 0; on error \-1 is returned, and
|
||||
.I errno
|
||||
is set to indicate the cause of the error.
|
||||
.SH ERRORS
|
||||
When
|
||||
.BR shmat ()
|
||||
|
|
Loading…
Reference in New Issue