%SHMAT

%SHMAT


%SETFLUSH Index Level %SHMDT
Syntax pointer = (char*)%SHMAT( shmid, (char*)shmaddr, shmflg )
Category BASIC
Type C Function
Description attaches a shared memory segment associated with the shared memory identifier "shmid" and returns the address of the segment.

Valid values for "shmflg" are defined in "shm.h" and "ipc.h". See the Unix Programmer's guide.
Options
See Also %SHMDT c function CFUNCTION %SHMGET
Example
Warnings It is strongly advised to use only the form where "shmaddr" is 0, to let the system select the address.
Compatibility D3/Unix
%SETFLUSH Index Level %SHMDT