42-archive/strace/test.c
2017-09-03 23:15:54 +02:00

11 lines
162 B
C

#include <unistd.h>
#include <fcntl.h>
int main(void)
{
write(1, "write in tracee\n", 16);
int fd = open("test.c", 0);
close(fd);
dup2(3, fd);
return 0;
}