libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / dup.c
blob2019937b2ac9758acdf1fd993946c5630c4883aa
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <fcntl.h>
6 #include <unistd.h>
8 #ifdef __weak_alias
9 __weak_alias(dup, _dup)
10 #endif
12 int dup(fd)
13 int fd;
15 return(fcntl(fd, F_DUPFD, 0));