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
secondary cache feature in vm.
[minix.git]
/
lib
/
libc
/
posix
/
_dup.c
blob
2150415c67e2aa2f30a3e538457aad099c7ea5b4
1
#include <lib.h>
2
#define dup _dup
3
#define fcntl _fcntl
4
#include <fcntl.h>
5
#include <unistd.h>
6
7
PUBLIC
int
dup
(
fd
)
8
int
fd
;
9
{
10
return
(
fcntl
(
fd
,
F_DUPFD
,
0
));
11
}