test 57 usr/test/dup/dup.c int orgfd, fd1, fd2, test = 0; test 66 usr/test/dup/dup.c printf("ok %d - dup(2) works\n", ++test); test 75 usr/test/dup/dup.c printf("ok %d - dup2(2) works\n", ++test); test 78 usr/test/dup/dup.c ++test; test 81 usr/test/dup/dup.c test); test 83 usr/test/dup/dup.c printf("ok %d - dup2(2) returned a correct fd\n", test); test 87 usr/test/dup/dup.c ++test; test 90 usr/test/dup/dup.c test); test 92 usr/test/dup/dup.c printf("ok %d - dup2(2) cleared close-on-exec\n", test); test 123 usr/test/dup/dup.c printf("ok %d - dup2(2) to itself works\n", ++test); test 126 usr/test/dup/dup.c ++test; test 129 usr/test/dup/dup.c test); test 132 usr/test/dup/dup.c test); test 136 usr/test/dup/dup.c ++test; test 138 usr/test/dup/dup.c printf("not ok %d - dup2(2) cleared close-on-exec\n", test); test 140 usr/test/dup/dup.c printf("ok %d - dup2(2) didn't clear close-on-exec\n", test); test 146 usr/test/dup/dup.c printf("ok %d - fcntl(F_DUPFD) works\n", ++test); test 150 usr/test/dup/dup.c ++test; test 154 usr/test/dup/dup.c test); test 156 usr/test/dup/dup.c printf("ok %d - fcntl(F_DUPFD) cleared close-on-exec\n", test); test 159 usr/test/dup/dup.c ++test; test 163 usr/test/dup/dup.c printf("not ok %d - dup2(2) bypassed NOFILE limit\n", test); test 165 usr/test/dup/dup.c printf("ok %d - dup2(2) didn't bypass NOFILE limit\n", test);