vuoi
o PayPal
tutte le volte che vuoi
shmctl - shared memory control operations
The shmctl()
function provides a variety of shared memory control operations as specified by cmd
. The following values for cmd
are available:
IPC_STAT
: Place the current value of each member of the data structure associated withshmid_ds
into the structure pointed to bybuf
. The contents of the structure are defined in<sys/shm.h>
.IPC_SET
: Set the value of the following members of the data structure associated withshmid_ds
to the corresponding value found in the structure pointed to bybuf
:shm_perm.uid
,shm_perm.gid
,shm_perm.mode
(low-order nine bits).IPC_SET
can only be executed by a process that has an effective user ID equal to either that of a process with appropriate privileges or to the