2 #include <asm/unistd.h>
12 const long int fd_old = (long int) 0xdeadbeefffffffffULL;
13 const long int fd_new = (long int) 0xdeadbeeffffffffeULL;
15 long rc = syscall(__NR_dup2, fd_old, fd_new);
16 printf("dup2(%d, %d) = %ld %s (%m)\n",
17 (int) fd_old, (int) fd_new, rc, errno2name());
19 puts("+++ exited with 0 +++");
25 SKIP_MAIN_UNDEFINED("__NR_dup2")