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

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

Minix 3.1.2a

File size: 159 bytes
RevLine 
[9]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.