dup.c (161B)
1 #include <unistd.h> 2 #include "syscall.h" 3 4 int dup2(int fd, int nfd) 5 { 6 return syscall(VXSYSDUP, fd, nfd, 0, 0, 0); 7 } 8 9 int dup(int fd) 10 { 11 return dup2(fd, -1); 12 } 13
vx32Local 9vx git repository for patches. | |
git clone git://r-36.net/vx32 | |
Log | Files | Refs |