1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-12-08 14:58:56 +00:00
Files
amiga-libnix2/sources/socket/ft.c
2014-01-05 20:02:29 +01:00

13 lines
221 B
C

#include <fcntl.h>
#include <unistd.h>
int main(void)
{
int fd1 = open("t:t1",O_TRUNC);
int fd2 = open("t:t2",O_TRUNC);
int fd3 = dup2(fd1,fd2);
int fd4 = dup(fd1);
close(fd2);
fd2 = open("t:t2",O_RDONLY);
}