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/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/semaphore.h')
-rw-r--r-- | sysdeps/pthread/semaphore.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/pthread/semaphore.h b/sysdeps/pthread/semaphore.h index a6f96e3..bb8c1b2 100644 --- a/sysdeps/pthread/semaphore.h +++ b/sysdeps/pthread/semaphore.h @@ -24,16 +24,12 @@ # include <bits/types/struct_timespec.h> #endif -/* Get the definition for struct __semaphore. */ +/* Get the definition for sem_t. */ #include <bits/semaphore.h> __BEGIN_DECLS -#define SEM_FAILED ((void *) 0) - -typedef struct __semaphore sem_t; - /* Initialize semaphore *SEM with value VALUE. */ extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value) __THROW; |