diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-19 01:46:27 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-19 01:46:27 +0100 |
commit | ddf59c36d90606ab0bfcdea99e1b01e98274eeb0 (patch) | |
tree | 2cf4b7242f2df6e252f42ba0d84f64459c747eb5 /sysdeps/pthread/bits/semaphore.h | |
parent | 5aa60db21b545797f47808603c97ffc168a45dd9 (diff) |
Synchronize semaphore.h with glibc
* sysdeps/pthread/semaphore.h (SEM_FAILED, sem_t): Move definitions
to...
* sysdeps/pthread/bits/semaphore.h: ... this file.
Diffstat (limited to 'sysdeps/pthread/bits/semaphore.h')
-rw-r--r-- | sysdeps/pthread/bits/semaphore.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/pthread/bits/semaphore.h b/sysdeps/pthread/bits/semaphore.h index 12c0bfb..1b20f75 100644 --- a/sysdeps/pthread/bits/semaphore.h +++ b/sysdeps/pthread/bits/semaphore.h @@ -36,6 +36,10 @@ struct __semaphore void *__data; }; +typedef struct __semaphore sem_t; + +#define SEM_FAILED ((void *) 0) + /* Initializer for a semaphore. */ #define __SEMAPHORE_INITIALIZER(pshared, value) \ { __PTHREAD_SPIN_LOCK_INITIALIZER, NULL, (pshared), (value), NULL } |