implement gnu sigisemptyset
[musl] / src / unistd / dup2.c
1 #include <unistd.h>
2 #include <errno.h>
3 #include "syscall.h"
4
5 int dup2(int old, int new)
6 {
7         int r;
8         while ((r=__syscall(SYS_dup2, old, new))==-EBUSY);
9         return __syscall_ret(r);
10 }