about summary refs log tree commit diff
path: root/sysdeps/stub/sys/sem_buf.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/sys/sem_buf.h')
-rw-r--r--sysdeps/stub/sys/sem_buf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/stub/sys/sem_buf.h b/sysdeps/stub/sys/sem_buf.h
index b301525408..194eb149ec 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 */