dup2 138 usr/bin/sh/sh.c if (dup2(redir[i], i) == -1) dup2 54 usr/include/unistd.h int dup2(int, int); dup2 129 usr/lib/libc/stdio/freopen.c if (dup2(f, wantfd) >= 0) { dup2 73 usr/test/dup/dup.c if ((fd2 = dup2(fd1, fd1 + 1)) < 0) dup2 121 usr/test/dup/dup.c if ((fd2 = dup2(fd1, fd1)) < 0) dup2 162 usr/test/dup/dup.c if ((fd2 = dup2(fd1, (int)(rlp.rlim_cur + 1))) >= 0)