diff options
Diffstat (limited to 'sys-utils/ipcutils.h')
-rw-r--r-- | sys-utils/ipcutils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/ipcutils.h b/sys-utils/ipcutils.h index 3ab5da0ca..f50e03c61 100644 --- a/sys-utils/ipcutils.h +++ b/sys-utils/ipcutils.h @@ -134,6 +134,12 @@ extern void ipc_shm_free_info(struct shm_data *shmds); /* See 'struct sem_array' in kernel sources */ +struct sem_elem { + int semval; + int ncount; /* processes waiting on increase semval */ + int zcount; /* processes waiting on semval set to zero */ + pid_t pid; /* process last executed semop(2) call */ +}; struct sem_data { struct ipc_stat sem_perm; @@ -141,6 +147,7 @@ struct sem_data { time_t sem_otime; uint64_t sem_nsems; + struct sem_elem *elements; struct sem_data *next; }; |