1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#if 0 #include <stddef.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <limits.h> #include <errno.h> #include "_syscall.h" int dup2(int fildes, int fildes2) { SYSCALL(dup2, int, -1, fildes, fildes2, 0, 0, 0, 0); } /* POSIX(1) */ #endif