plan9port/src/lib9/dup.c

13 lines
136 B
C
Raw Normal View History

2003-11-23 18:12:54 +00:00
#include <u.h>
#include <libc.h>
#undef dup
int
p9dup(int old, int new)
{
if(new == -1)
return dup(old);
return dup2(old, new);
}