6fc5fdbd ^
159d1f6c ^
400c5e5c ^
1
2
3
4
5 6
7
8 9
#include <semaphore.h> #include <limits.h> int sem_getvalue(sem_t *restrict sem, int *restrict valp) { int val = sem->__val[0]; *valp = val & SEM_VALUE_MAX; return 0; }