minix3/lib/libc/sys/dup.c

13 lines
161 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <fcntl.h>
#include <unistd.h>
int dup(fd)
int fd;
{
return(fcntl(fd, F_DUPFD, 0));
}