shmop_open

shmop_open -- Create or open shared memory block

Description

int shmop_open ( int key, string flags, int mode, int size)

The third parameter is the mode, which are the permissions that you wish to assign to your memory segment, those are the same as permission for a file. Permissions need to be passed in octal form ex. 0644. The last parameter is size of the shared memory block you wish to create in bytes.

Nota :



Exemplo 1 .