diff options
Diffstat (limited to 'sysdeps/stub/sys')
-rw-r--r-- | sysdeps/stub/sys/ipc_buf.h | 3 | ||||
-rw-r--r-- | sysdeps/stub/sys/sem_buf.h | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sysdeps/stub/sys/ipc_buf.h b/sysdeps/stub/sys/ipc_buf.h index fc2ad03..d62d2c1 100644 --- a/sysdeps/stub/sys/ipc_buf.h +++ b/sysdeps/stub/sys/ipc_buf.h @@ -36,9 +36,6 @@ Boston, MA 02111-1307, USA. */ __BEGIN_DECLS -/* Data type for key value. */ -typedef int key_t; - /* Special key values. */ #define IPC_PRIVATE ((key_t) 0) /* private key */ diff --git a/sysdeps/stub/sys/sem_buf.h b/sysdeps/stub/sys/sem_buf.h index b301525..194eb14 100644 --- a/sysdeps/stub/sys/sem_buf.h +++ b/sysdeps/stub/sys/sem_buf.h @@ -47,6 +47,15 @@ struct semid_ds unsigned short int sem_nsems; /* number of semaphores in set */ }; +/* Union used for argument for `semctl'. */ +union semun +{ + int val; /* value for SETVAL */ + struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ + unsigned short int *array; /* array for GETALL & SETALL */ + struct seminfo *__buf; /* buffer for IPC_INFO */ + }; + __END_DECLS #endif /* sys/sem_buf.h */ |