source:
trunk/minix/lib/posix/_dup.c@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 159 bytes |
Rev | Line | |
---|---|---|
[9] | 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 | } |
Note:
See TracBrowser
for help on using the repository browser.