1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef _SYS_SEM_H
- # error "Never include <bits/sem.h> directly; use <sys/sem.h> instead."
- #endif
- #include <sys/types.h>
- #define SEM_UNDO 0x1000
- #define GETPID 11
- #define GETVAL 12
- #define GETALL 13
- #define GETNCNT 14
- #define GETZCNT 15
- #define SETVAL 16
- #define SETALL 17
- struct semid_ds
- {
- struct ipc_perm sem_perm;
- __time_t sem_otime;
- __time_t sem_ctime;
- unsigned long int sem_nsems;
- unsigned long int __uclibc_unused1;
- unsigned long int __uclibc_unused2;
- };
- #define _SEM_SEMUN_UNDEFINED 1
- #ifdef __USE_MISC
- # define SEM_STAT 18
- # define SEM_INFO 19
- struct seminfo
- {
- int semmap;
- int semmni;
- int semmns;
- int semmnu;
- int semmsl;
- int semopm;
- int semume;
- int semusz;
- int semvmx;
- int semaem;
- };
- #endif
|