z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


shmget

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-shmget--key--+-----------------+--permissions---------------><
                '-size--+-------+-'                
                        '-flags-'                  

Function

shmget locates or creates a shared memory segment.

Parameters

key
The memory segment key. The value must be 4 bytes.
size
The size of the shared memory segment. The default is 0.
flags
The type of connection. The default is either 0, which obtains the existing queue, or a sum of any of the following flags:
permissions
Permission settings in octal (the default is 600). It is dependent on the flags being specified.

Example

'shmget WJSM 4096 (ipc_creat)'

Usage notes

Upon return, RETVAL contains -1 if the service failed. Otherwise, the segment ID is returned.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014