summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/sem.h
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-07-28 03:30:57 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-07-28 03:30:57 +0000
commit1317be0e8a98533ab745b41aed0cef6b1a80fe97 (patch)
treef73da788fef55c138fd77d9c318d94e3366b8da0 /libc/sysdeps/linux/common/bits/sem.h
parent6487a33c3aded88892f54b3cf92d96062a229999 (diff)
A while back, the sysvipc code was changed to use IPC_64 in the calls.
Unfortunatly, the semid_ds structs were not changed as needed. So import the necessary (tweaked) files from glibc. Only tested on x86 today, but I'll be testing mips tomorrow.
Diffstat (limited to 'libc/sysdeps/linux/common/bits/sem.h')
-rw-r--r--libc/sysdeps/linux/common/bits/sem.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/common/bits/sem.h b/libc/sysdeps/linux/common/bits/sem.h
index f900136f0..64ff76498 100644
--- a/libc/sysdeps/linux/common/bits/sem.h
+++ b/libc/sysdeps/linux/common/bits/sem.h
@@ -36,15 +36,16 @@
/* Data structure describing a set of semaphores. */
-struct semid_ds {
- struct ipc_perm sem_perm; /* permissions .. see ipc.h */
- __kernel_time_t sem_otime; /* last semop time */
- __kernel_time_t sem_ctime; /* last change time */
- struct sem *sem_base; /* ptr to first semaphore in array */
- struct sem_queue *sem_pending; /* pending operations to be processed */
- struct sem_queue **sem_pending_last; /* last pending operation */
- struct sem_undo *undo; /* undo requests on this array */
- unsigned short sem_nsems; /* no. of semaphores in array */
+struct semid_ds
+{
+ struct ipc_perm sem_perm; /* operation permission struct */
+ __kernel_time_t sem_otime; /* last semop() time */
+ unsigned long int __unused1;
+ __kernel_time_t sem_ctime; /* last time changed by semctl() */
+ unsigned long int __unused2;
+ unsigned long int sem_nsems; /* number of semaphores in set */
+ unsigned long int __unused3;
+ unsigned long int __unused4;
};
/* The user should define a union like the following to use it for arguments