OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove unused __futex function and source file
[android-x86/external-musl-libc.git]
/
src
/
thread
/
sem_getvalue.c
1
#include <semaphore.h>
2
3
int sem_getvalue(sem_t *restrict sem, int *restrict valp)
4
{
5
int val = sem->__val[0];
6
*valp = val < 0 ? 0 : val;
7
return 0;
8
}