dup2 1295 lib/services/services_linux.c if (dup2(stdout_fd[1], STDOUT_FILENO) != STDOUT_FILENO) { dup2 1303 lib/services/services_linux.c if (dup2(stderr_fd[1], STDERR_FILENO) != STDERR_FILENO) { dup2 1312 lib/services/services_linux.c if (dup2(stdin_fd[0], STDIN_FILENO) != STDIN_FILENO) { dup2 65 maint/gnulib/lib/cloexec.c if (dup2 (desc, desc) < 0) dup2 144 maint/gnulib/lib/dup2.c dupfd = dup2 (fd, desired_fd); dup2 179 maint/gnulib/lib/dup2.c result = dup2 (fd, desired_fd); dup2 94 maint/gnulib/lib/dup3.c else if (dup2 (oldfd, newfd) < 0) dup2 190 maint/gnulib/lib/fchdir.c if (dup2 (fd, fd) == fd) dup2 241 maint/gnulib/lib/fcntl.c if (0 <= dup2 (fd, fd)) dup2 574 maint/gnulib/lib/fcntl.c result = dup2 (fd, arg); dup2 72 maint/gnulib/lib/freopen-safer.c if (dup2 (STDERR_FILENO, STDERR_FILENO) != STDERR_FILENO) dup2 76 maint/gnulib/lib/freopen-safer.c if (dup2 (STDOUT_FILENO, STDOUT_FILENO) != STDOUT_FILENO) dup2 80 maint/gnulib/lib/freopen-safer.c if (dup2 (STDIN_FILENO, STDIN_FILENO) != STDIN_FILENO) dup2 76 maint/gnulib/lib/freopen.c if (dup2 (fd, fd) < 0 && errno == EBADF) dup2 82 maint/gnulib/lib/freopen.c if (dup2 (nullfd, fd) < 0) dup2 75 maint/gnulib/lib/fseterr.c if (dup2 (fd2, fd) < 0) dup2 39 maint/gnulib/lib/grantpt.c # define __dup2 dup2 dup2 69 maint/gnulib/lib/login_tty.c if (dup2 (slave_fd, i) < 0) dup2 82 maint/gnulib/lib/os2-spawn.c if (dup2 (tempfd, origfd) < 0) dup2 103 maint/gnulib/lib/pselect.c && dup2 (i, i) != i) dup2 583 maint/gnulib/lib/select.c && dup2 (i, i) != i) dup2 366 maint/gnulib/lib/spawn-pipe.c if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) dup2 367 maint/gnulib/lib/spawn-pipe.c && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) dup2 371 maint/gnulib/lib/spawn-pipe.c || (dup2 (nulloutfd, STDERR_FILENO) >= 0 dup2 377 maint/gnulib/lib/spawn-pipe.c || (dup2 (stdinfd, STDIN_FILENO) >= 0 dup2 383 maint/gnulib/lib/spawn-pipe.c || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 dup2 853 maint/gnulib/lib/spawni.c if (dup2 (new_fd, action->action.open_action.fd) dup2 866 maint/gnulib/lib/spawni.c if (dup2 (action->action.dup2_action.fd, dup2 486 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); dup2 487 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); dup2 493 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); dup2 495 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); dup2 497 maint/gnulib/lib/unistd.in.h _GL_CXXALIASWARN (dup2); dup2 501 maint/gnulib/lib/unistd.in.h _GL_WARN_ON_USE (dup2, "dup2 is unportable - " dup2 513 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); dup2 515 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); dup2 517 maint/gnulib/lib/unistd.in.h _GL_CXXALIASWARN (dup2); dup2 54 maint/gnulib/tests/test-dirent-safer.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 118 maint/gnulib/tests/test-dup-safer.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 24 maint/gnulib/tests/test-dup2.c SIGNATURE_CHECK (dup2, int, (int, int)); dup2 127 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd) == fd); dup2 132 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (-1, fd) == -1); dup2 136 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (99, fd) == -1); dup2 139 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (AT_FDCWD, fd) == -1); dup2 145 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 1) == -1); dup2 149 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd) == -1); dup2 155 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, -2) == -1); dup2 159 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, 255) == 255); dup2 160 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, 256) == 256); dup2 164 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, bad_fd - 1) == bad_fd - 1); dup2 167 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, bad_fd) == -1); dup2 171 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 2) == fd + 2); dup2 178 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd) == fd); dup2 181 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 2, fd) == fd); dup2 193 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 1) == fd + 1); dup2 195 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, fd + 2) == fd + 2); dup2 199 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd + 1, -1) == -1); dup2 208 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 1) == fd + 1); dup2 212 maint/gnulib/tests/test-dup2.c ASSERT (dup2 (fd, fd + 1) == fd + 1); dup2 317 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (STDOUT_FILENO, 10) >= 0); dup2 355 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd, 10) >= 0); dup2 380 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd, 10) >= 0); dup2 415 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd_in, 10) >= 0); dup2 419 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (fd_out, 11) >= 0); dup2 441 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (STDIN_FILENO, 10) >= 0); dup2 444 maint/gnulib/tests/test-execute-main.c ASSERT (dup2 (STDOUT_FILENO, 11) >= 0); dup2 91 maint/gnulib/tests/test-fchdir.c ASSERT (dup2 (new_fd, fd) == fd); dup2 94 maint/gnulib/tests/test-fchdir.c ASSERT (dup2 (new_fd, fd) == fd); dup2 66 maint/gnulib/tests/test-fdopendir.c ASSERT (dup2 (fd, fd) == fd); dup2 76 maint/gnulib/tests/test-fdopendir.c ASSERT (dup2 (fd, fd) == -1); dup2 43 maint/gnulib/tests/test-freopen-safer.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 32 maint/gnulib/tests/test-getdtablesize.c ASSERT (dup2 (0, getdtablesize() - 1) == getdtablesize () - 1); dup2 33 maint/gnulib/tests/test-getdtablesize.c ASSERT (dup2 (0, getdtablesize()) == -1); dup2 47 maint/gnulib/tests/test-getopt-main.h if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 61 maint/gnulib/tests/test-nonblocking-pipe-main.c ASSERT (dup2 (fd[0], STDIN_FILENO) >= 0); dup2 66 maint/gnulib/tests/test-nonblocking-pipe-main.c ASSERT (dup2 (fd[1], STDOUT_FILENO) >= 0); dup2 50 maint/gnulib/tests/test-openat-safer.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 40 maint/gnulib/tests/test-perror2.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 45 maint/gnulib/tests/test-popen-safer.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 75 maint/gnulib/tests/test-popen.h ASSERT (dup2 (STDIN_FILENO, STDIN_FILENO) == -1); dup2 76 maint/gnulib/tests/test-popen.h ASSERT (dup2 (STDOUT_FILENO, STDOUT_FILENO) == -1); dup2 87 maint/gnulib/tests/test-popen.h ASSERT (dup2 (STDIN_FILENO, STDIN_FILENO) == -1); dup2 88 maint/gnulib/tests/test-popen.h ASSERT (dup2 (STDOUT_FILENO, STDOUT_FILENO) == -1); dup2 88 maint/gnulib/tests/test-spawn-pipe-main.c if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO dup2 48 maint/gnulib/tests/test-unistd-c++.cc SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int)); dup2 515 tools/crm_simulate.c dup2(STDOUT_FILENO, STDERR_FILENO);