Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

shmdt(2) OSS System Calls Reference Manual
RETURN VALUES
Upon successful completion, the shmdt() function returns the value 0 (zero). The shared
memory segment is detached. The value of the shm_nattch field in the structure associated with
the shared memory identifier in the shared memory table is decremented.
Otherwise, the shmdt() function returns the value -1 and sets errno to indicate the error.
ERRORS
If any of the following conditions occur, the shmdt() function sets errno to the corresponding
value and does not detach the shared memory segment:
[EINVAL] The shmaddr parameter does not specify the starting address of a shared memory
segment.
[ENOTOSS] The calling process is not an OSS process. The requested operation cannot be
performed from the Guardian environment on servers running J06.11 or earlier
J-series RVUs, H06.22 or earlier H-series RVUs, or G-series RVUs.
RELATED INFORMATION
Commands: ipcrm(1), ipcs(1).
Functions: shmat(2), shmctl(2), shmget(2).
STANDARDS CONFORMANCE
The following is a HP extension to the XPG4 Version 2 specification:
On servers running J06.11 or earlier J-series RVUs, H06.22 or earlier H-series RVUs, or
G-series RVUs, the errno value [ENOTOSS] can be returned if this function is called
from a Guardian process.
784 Hewlett-Packard Company 527186-023