repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
sys
/
sysvi386
/
dup2.c
blob
6b72599fbb227325ed8c49a0d99bf369e12c0391
1
#include <fcntl.h>
2
3
int
4
dup2
(
int
fd1
,
int
fd2
) {
5
close
(
fd2
);
/* ignore errors, if any */
6
return
(
fcntl
(
fd1
,
F_DUPFD
,
fd2
));
7
}