dup.c - vx32 - Local 9vx git repository for patches.
 (HTM) git clone git://r-36.net/vx32
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       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