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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
dup.c
blob
2019937b2ac9758acdf1fd993946c5630c4883aa
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <fcntl.h>
6
#include <unistd.h>
7
8
#ifdef __weak_alias
9
__weak_alias
(
dup
,
_dup
)
10
#endif
11
12
int
dup
(
fd
)
13
int
fd
;
14
{
15
return
(
fcntl
(
fd
,
F_DUPFD
,
0
));
16
}