1 #include "tests.h" 2 #include <stdio.h> 3 #include <unistd.h> 4 5 int main(void)6 main(void) 7 { 8 int rc = dup(-1); 9 printf("dup(-1) = %d %s (%m)\n", rc, errno2name()); 10 11 puts("+++ exited with 0 +++"); 12 return 0; 13 } 14