Open System Services System Calls Reference Manual (G06.25+, H06.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 is not sup-
ported from the Guardian environment.
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:
• The errno value [ENOTOSS] can be returned.
7−52 Hewlett-Packard Company 527186-003