projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use namespace-safe __lseek for __stdio_seek instead of direct syscall
[musl]
/
src
/
unistd
/
pipe.c
diff --git
a/src/unistd/pipe.c
b/src/unistd/pipe.c
index
2dfc9c9
..
d07b8d2
100644
(file)
--- a/
src/unistd/pipe.c
+++ b/
src/unistd/pipe.c
@@
-3,5
+3,9
@@
int pipe(int fd[2])
{
- return syscall1(__NR_pipe, (long)fd);
+#ifdef SYS_pipe
+ return syscall(SYS_pipe, fd);
+#else
+ return syscall(SYS_pipe2, fd, 0);
+#endif
}