home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 2
/
Apprentice-Release2.iso
/
Tools
/
MPW
/
gawk 2.11.1r3
/
Sources
/
missing.d
/
dup2.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-06-01
|
136 b
|
13 lines
|
[
TEXT/MPS
]
#ifndef F_DUPFD
#include <fcntl.h>
#endif
int
dup2 (old, new)
int old, new;
{
(void) close(new);
return fcntl(old, F_DUPFD, new);
}