Remove "[Add new features here]" for 2.27
[glibc.git] / conform / data / semaphore.h-data
blob066c2f721b4df12f2b35afc1baa2cac0ea66a107
1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
2 type sem_t
4 constant SEM_FAILED
6 function int sem_close (sem_t*)
7 function int sem_destroy (sem_t*)
8 function int sem_getvalue (sem_t*, int*)
9 function int sem_init (sem_t*, int, unsigned int)
10 function {sem_t*} sem_open (const char*, int, ...)
11 function int sem_post (sem_t*)
12 # if !defined POSIX && !defined UNIX98
13 function int sem_timedwait (sem_t*, const struct timespec*)
14 # endif
15 function int sem_trywait (sem_t*)
16 function int sem_unlink (const char*)
17 function int sem_wait (sem_t*)
19 allow-header fcntl.h
20 # if !defined POSIX2008 && !defined XOPEN2K8
21 allow-header sys/types.h
22 # endif
23 // Consider addition of this permission in POSIX.1:2008 as a bug fix,
24 // so allow for POSIX.1:2001 as well since that includes sem_timedwait.
25 # if !defined POSIX && !defined UNIX98
26 allow-header time.h
27 # endif
29 allow sem_*
30 allow SEM_*
31 allow *_t
32 #endif