0b44a031
f9a6372a
1
2
3 4 5 6
7 8 9
10
#include <unistd.h> #include <errno.h> #include "syscall.h" int dup2(int old, int new) { int r; while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); return __syscall_ret(r); }