Contains information about a semaphore set.
#include <sys/sem.h> struct semid_ds { struct ipc_perm sem_perm; struct sem *sem_base; unsigned short sem_nsems; time_t sem_otime; time_t sem_ctime; void *sem_ptr; int sem_realkey; };
Specifies an ipc_perm structure which contains information about access permissions, the creator, and the owner of the set.
Points to the first semphore in the array. Each semaphore in the set has a sem structure.
Specifies the number of semaphores in the set.
Specifies the time of the last semop operation.
Specifies the last time the semaphore set changed.
Points to the underlying semaphore.
Specifies the semaphore key.
The semctl function uses the semid_ds structure for the IPC_STAT and IPC_SET commands.