simplify pthread tsd key handling
[oweals/musl.git] / src / thread / __wake.c
index 048ddcc01c699c32ed2edec91c092a54a655e89f..6f2f894abf8e26e18a0ba1daed06d79a886bc2e8 100644 (file)
@@ -1,9 +1,8 @@
-#define SYSCALL_RETURN_ERRNO
 #include "pthread_impl.h"
 
 void __wake(volatile int *addr, int cnt, int priv)
 {
        if (priv) priv = 128; priv=0;
        if (cnt<0) cnt = INT_MAX;
-       syscall3(__NR_futex, (long)addr, FUTEX_WAKE | priv, cnt);
+       __syscall(__NR_futex, (long)addr, FUTEX_WAKE | priv, cnt);
 }