source: trunk/minix/lib/posix/_dup.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 159 bytes
Line 
1#include <lib.h>
2#define dup _dup
3#define fcntl _fcntl
4#include <fcntl.h>
5#include <unistd.h>
6
7PUBLIC int dup(fd)
8int fd;
9{
10 return(fcntl(fd, F_DUPFD, 0));
11}
Note: See TracBrowser for help on using the repository browser.