Sign in
plan9port
/
plan9
/
9dbe4a0df903ee76bf72fcaff43dea5bb5bf3f75
/
.
/
src
/
lib9
/
dup.c
blob: feec1b77dcb792e38a38ee40af88e35713fcd89b [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
#undef
dup
int
p9dup
(
int
old
,
int
new
)
{
if
(
new
==
-
1
)
return
dup
(
old
);
return
dup2
(
old
,
new
);
}