newfd              29 maint/gnulib/lib/dup3.c dup3 (int oldfd, int newfd, int flags)
newfd              35 maint/gnulib/lib/dup3.c   setdtablesize (newfd + 1);
newfd              44 maint/gnulib/lib/dup3.c         int result = dup3 (oldfd, newfd, flags);
newfd              50 maint/gnulib/lib/dup3.c               result = _gl_register_dup (oldfd, newfd);
newfd              59 maint/gnulib/lib/dup3.c   if (newfd < 0 || newfd >= getdtablesize () || fcntl (oldfd, F_GETFD) == -1)
newfd              65 maint/gnulib/lib/dup3.c   if (newfd == oldfd)
newfd              83 maint/gnulib/lib/dup3.c       close (newfd);
newfd              84 maint/gnulib/lib/dup3.c       result = fcntl (oldfd, F_DUPFD_CLOEXEC, newfd);
newfd              85 maint/gnulib/lib/dup3.c       if (newfd < result)
newfd              94 maint/gnulib/lib/dup3.c   else if (dup2 (oldfd, newfd) < 0)
newfd              99 maint/gnulib/lib/dup3.c     set_binary_mode (newfd, O_BINARY);
newfd             101 maint/gnulib/lib/dup3.c     set_binary_mode (newfd, O_TEXT);
newfd             104 maint/gnulib/lib/dup3.c   return newfd;
newfd             155 maint/gnulib/lib/fchdir.c _gl_register_dup (int oldfd, int newfd)
newfd             157 maint/gnulib/lib/fchdir.c   assure (0 <= oldfd && 0 <= newfd && oldfd != newfd);
newfd             161 maint/gnulib/lib/fchdir.c       if (!ensure_dirs_slot (newfd)
newfd             162 maint/gnulib/lib/fchdir.c           || (dirs[newfd].name = strdup (dirs[oldfd].name)) == NULL)
newfd             165 maint/gnulib/lib/fchdir.c           close (newfd);
newfd             167 maint/gnulib/lib/fchdir.c           newfd = -1;
newfd             170 maint/gnulib/lib/fchdir.c   else if (newfd < dirs_allocated)
newfd             173 maint/gnulib/lib/fchdir.c       free (dirs[newfd].name);
newfd             174 maint/gnulib/lib/fchdir.c       dirs[newfd].name = NULL;
newfd             176 maint/gnulib/lib/fchdir.c   return newfd;
newfd              55 maint/gnulib/lib/fcntl.c dupfd (int oldfd, int newfd, int flags)
newfd              67 maint/gnulib/lib/fcntl.c   if (newfd < 0 || getdtablesize () <= newfd)
newfd             126 maint/gnulib/lib/fcntl.c       if (newfd <= duplicated_fd)
newfd            2008 maint/gnulib/lib/fts.c         int newfd;
newfd            2041 maint/gnulib/lib/fts.c         newfd = fd;
newfd            2042 maint/gnulib/lib/fts.c         if (fd < 0 && (newfd = diropen (sp, dir)) < 0)
newfd            2056 maint/gnulib/lib/fts.c             if (fstat(newfd, &sb))
newfd            2072 maint/gnulib/lib/fts.c             cwd_advance_fd (sp, newfd, ! is_dotdot);
newfd            2076 maint/gnulib/lib/fts.c         ret = fchdir(newfd);
newfd            2081 maint/gnulib/lib/fts.c             (void)close(newfd);
newfd              37 maint/gnulib/lib/spawn_faction_adddup2.c                                   int fd, int newfd)
newfd              43 maint/gnulib/lib/spawn_faction_adddup2.c   if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd)
newfd              47 maint/gnulib/lib/spawn_faction_adddup2.c   return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd);
newfd              62 maint/gnulib/lib/spawn_faction_adddup2.c     rec->action.dup2_action.newfd = newfd;
newfd              40 maint/gnulib/lib/spawn_int.h       int newfd;
newfd             117 maint/gnulib/lib/spawni.c grow_inheritable_handles (struct inheritable_handles *inh_handles, int newfd)
newfd             119 maint/gnulib/lib/spawni.c   if (inh_handles->allocated <= newfd)
newfd             122 maint/gnulib/lib/spawni.c       if (new_allocated <= newfd)
newfd             123 maint/gnulib/lib/spawni.c         new_allocated = newfd + 1;
newfd             148 maint/gnulib/lib/spawni.c   for (; inh_handles->count <= newfd; inh_handles->count++)
newfd             364 maint/gnulib/lib/spawni.c do_open (struct inheritable_handles *inh_handles, int newfd,
newfd             368 maint/gnulib/lib/spawni.c   if (!(newfd >= 0 && newfd < _getmaxstdio ()))
newfd             373 maint/gnulib/lib/spawni.c   if (grow_inheritable_handles (inh_handles, newfd) < 0)
newfd             375 maint/gnulib/lib/spawni.c   if (inh_handles->handles[newfd] != INVALID_HANDLE_VALUE
newfd             376 maint/gnulib/lib/spawni.c       && !CloseHandle (inh_handles->handles[newfd]))
newfd             407 maint/gnulib/lib/spawni.c                         curr_process, &inh_handles->handles[newfd],
newfd             414 maint/gnulib/lib/spawni.c   inh_handles->flags[newfd] = ((flags & O_APPEND) != 0 ? 32 : 0);
newfd             422 maint/gnulib/lib/spawni.c do_dup2 (struct inheritable_handles *inh_handles, int oldfd, int newfd,
newfd             431 maint/gnulib/lib/spawni.c   if (!(newfd >= 0 && newfd < _getmaxstdio ()))
newfd             436 maint/gnulib/lib/spawni.c   if (newfd != oldfd)
newfd             438 maint/gnulib/lib/spawni.c       if (grow_inheritable_handles (inh_handles, newfd) < 0)
newfd             440 maint/gnulib/lib/spawni.c       if (inh_handles->handles[newfd] != INVALID_HANDLE_VALUE
newfd             441 maint/gnulib/lib/spawni.c           && !CloseHandle (inh_handles->handles[newfd]))
newfd             449 maint/gnulib/lib/spawni.c                             curr_process, &inh_handles->handles[newfd],
newfd             455 maint/gnulib/lib/spawni.c       inh_handles->flags[newfd] = 0;
newfd             583 maint/gnulib/lib/spawni.c                 int newfd = action->action.open_action.fd;
newfd             587 maint/gnulib/lib/spawni.c                 if (do_open (&inh_handles, newfd, filename, directory,
newfd             597 maint/gnulib/lib/spawni.c                 int newfd = action->action.dup2_action.newfd;
newfd             598 maint/gnulib/lib/spawni.c                 if (do_dup2 (&inh_handles, oldfd, newfd, curr_process) < 0)
newfd             867 maint/gnulib/lib/spawni.c                         action->action.dup2_action.newfd)
newfd             868 maint/gnulib/lib/spawni.c                   != action->action.dup2_action.newfd)
newfd             486 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd));
newfd             487 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd));
newfd             493 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd));
newfd             495 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
newfd             513 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd));
newfd             515 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
newfd             534 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
newfd             535 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
newfd             537 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
newfd             538 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags));
newfd             937 maint/gnulib/lib/unistd.in.h _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);