diff options
Diffstat (limited to 'src/unistd/dup.c')
| -rw-r--r-- | src/unistd/dup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unistd/dup.c b/src/unistd/dup.c new file mode 100644 index 00000000..badc0f86 --- /dev/null +++ b/src/unistd/dup.c @@ -0,0 +1,12 @@ +#include "stddef.h" +#include "sys/types.h" +#include <unistd.h> +#include "fcntl.h" + +int dup(int fildes) +{ + return fcntl(fildes, F_DUPFD, 0); +} +/* +POSIX(1) +*/ |
