projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
process
/
waitpid.c
diff --git
a/src/process/waitpid.c
b/src/process/waitpid.c
index 0ddcd15a71c2d50cc2da2657a9db8a5efa7ec5bf..f75e31ef24674df14252163f858aac6e6ddf8ed2 100644
(file)
--- a/
src/process/waitpid.c
+++ b/
src/process/waitpid.c
@@
-1,7
+1,8
@@
#include <sys/wait.h>
#include "syscall.h"
+#include "libc.h"
pid_t waitpid(pid_t pid, int *status, int options)
{
- return syscall
4(__NR_wait4, pid, (long)
status, options, 0);
+ return syscall
_cp(SYS_wait4, pid,
status, options, 0);
}