dup.c (136B)
1 #include <u.h> 2 #include <libc.h> 3 4 #undef dup 5 6 int 7 p9dup(int old, int new) 8 { 9 if(new == -1) 10 return dup(old); 11 return dup2(old, new); 12 }
9baserevived minimalist port of Plan 9 userland to Unix | |
git clone git://git.suckless.org/9base | |
Log | Files | Refs | README | LICENSE |