shmdt()

detach shared memory 

Function


SYNOPSIS

#include <sys/shm.h>

int shmdt(const void *shmaddr);


DESCRIPTION

The shmdt() function detaches from the calling process's data segment the shared memory segment located at the address specified by shmaddr.


PARAMETERS

shmaddr 

Is the data segment start address of a shared memory segment.


RETURN VALUES

If successful, shmdt() decrements the shm_nattach associated with the shared memory segment and returns zero. On failure, it returns -1 and set errno to one of the following values:

EINVAL 

shmaddr is not the data segment start address of a shared memory segment.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
shmat(), shmctl(), shmget()


PTC MKS Toolkit 10.4 Documentation Build 39.