repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
dup.c
blob
207fa20a11ceaf26d9ce1e1b34fa81bf02073cee
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <fcntl.h>
6
#include <unistd.h>
7
8
int
dup
(
fd
)
9
int
fd
;
10
{
11
return
(
fcntl
(
fd
,
F_DUPFD
,
0
));
12
}