mirror of
https://git.suckless.org/9base
synced 2025-08-11 18:21:55 -07:00
initial import
This commit is contained in:
12
lib9/dup.c
Normal file
12
lib9/dup.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
|
||||
#undef dup
|
||||
|
||||
int
|
||||
p9dup(int old, int new)
|
||||
{
|
||||
if(new == -1)
|
||||
return dup(old);
|
||||
return dup2(old, new);
|
||||
}
|
Reference in New Issue
Block a user