projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix
[oweals/musl.git]
/
src
/
thread
/
__wake.c
1
#include "pthread_impl.h"
2
3
void __wake(volatile int *addr, int cnt, int priv)
4
{
5
if (priv) priv = 128; priv=0;
6
if (cnt<0) cnt = INT_MAX;
7
__syscall(SYS_futex, (long)addr, FUTEX_WAKE | priv, cnt);
8
}