|
NAMEshmctl —
shared memory control
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int
DESCRIPTIONPerforms the action specified by cmd on the shared memory segment identified by shmid:
The shmid_ds structure is defined as follows: struct shmid_ds { struct ipc_perm shm_perm; /* operation permission structure */ size_t shm_segsz; /* size of segment in bytes */ pid_t shm_lpid; /* process ID of last shared memory op */ pid_t shm_cpid; /* process ID of creator */ int shm_nattch; /* number of current attaches */ time_t shm_atime; /* time of last shmat() */ time_t shm_dtime; /* time of last shmdt() */ time_t shm_ctime; /* time of last change by shmctl() */ }; RETURN VALUESTheshmctl () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORSTheshmctl () system call will fail if:
SEE ALSOshmat(2), shmdt(2), shmget(2), ftok(3)
Visit the GSP FreeBSD Man Page Interface. |