minix/lib/libc/sys-minix/dup.c
2012-03-25 21:58:14 +02:00

16 lines
213 B
C

#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef __weak_alias
__weak_alias(dup, _dup)
#endif
int dup(fd)
int fd;
{
return(fcntl(fd, F_DUPFD, 0));
}