/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | chdir-long.c | 83 int new_fd = openat (cdb->fd, dir, O_RDONLY | O_DIRECTORY); local 84 if (new_fd < 0) 86 new_fd = openat (cdb->fd, dir, O_WRONLY | O_DIRECTORY); 87 if (new_fd < 0) 92 cdb->fd = new_fd;
|
H A D | openat.c | 55 int new_fd; local 85 new_fd = open (file, flags, mode); 95 return new_fd;
|
/netbsd-current/external/bsd/atf/dist/atf-c/ |
H A D | utils.c | 364 const int new_fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644); local 365 if (new_fd == -1) 367 if (new_fd != target_fd) { 368 if (dup2(new_fd, target_fd) == -1) 371 close(new_fd);
|
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | chdir-long.c | 75 int new_fd = openat (cdb->fd, dir, local 77 if (new_fd < 0) 81 cdb->fd = new_fd;
|
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/ |
H A D | chdir-long.c | 75 int new_fd = openat (cdb->fd, dir, local 77 if (new_fd < 0) 81 cdb->fd = new_fd;
|
/netbsd-current/external/gpl3/binutils/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/gcc/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/gdb/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/ |
H A D | pex-unix.c | 380 int new_fd, flags; local 387 new_fd = -1, flags = 0; 394 new_fd = old_fd; 402 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); 403 if (new_fd < 0) 408 new_fd = fcntl (old_fd, F_DUPFD, 3); 409 if (new_fd < 0) 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) 420 *pnew_fd = new_fd; 421 else if (new_fd ! [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdbserver/ |
H A D | hostio.cc | 303 struct fd_list *new_fd; local 334 new_fd = XNEW (struct fd_list); 335 new_fd->fd = fd; 336 new_fd->next = open_fds; 337 open_fds = new_fd;
|
/netbsd-current/external/gpl3/gdb/dist/gdbserver/ |
H A D | hostio.cc | 305 struct fd_list *new_fd; local 336 new_fd = XNEW (struct fd_list); 337 new_fd->fd = fd; 338 new_fd->next = open_fds; 339 open_fds = new_fd;
|
/netbsd-current/external/bsd/kyua-cli/dist/utils/process/ |
H A D | child.cpp | 94 /// \param new_fd The file descriptor to use as the duplicate. This is 99 safe_dup(const int old_fd, const int new_fd) argument 101 if (process::detail::syscall_dup2(old_fd, new_fd) == -1) { 103 throw process::system_error(F("dup2(%s, %s) failed") % old_fd % new_fd, local
|
/netbsd-current/crypto/external/bsd/openssh/dist/ |
H A D | mux.c | 331 int r, new_fd[3]; local 392 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { 395 close(new_fd[j]); 409 new_fd[0], new_fd[1], new_fd[2]); 417 close(new_fd[0]); 418 close(new_fd[1]); 419 close(new_fd[2]); 442 if (cctx->want_tty && tcgetattr(new_fd[ 957 int ok = 0, cport, r, new_fd[2]; local [all...] |
/netbsd-current/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_read_disk_posix.c | 2109 int new_fd; local 2114 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0); 2115 if (new_fd != -1) 2116 return (new_fd); 2123 new_fd = dup(fd); 2124 __archive_ensure_cloexec_flag(new_fd); 2125 return (new_fd); 2258 int flag, new_fd, r = 0; local 2265 new_fd = open_on_current_dir(t, t->stack->name.s, flag); 2266 __archive_ensure_cloexec_flag(new_fd); 2294 int new_fd, r = 0, prev_dir_fd; local [all...] |
/netbsd-current/external/ibm-public/postfix/dist/src/master/ |
H A D | event_server.c | 409 int new_fd; local 416 if ((new_fd = fcntl(fd, F_DUPFD, THRESHOLD_FD_WORKAROUND)) < 0) 419 fd = new_fd;
|
H A D | multi_server.c | 388 int new_fd; local 395 if ((new_fd = fcntl(fd, F_DUPFD, THRESHOLD_FD_WORKAROUND)) < 0) 398 fd = new_fd;
|
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/ |
H A D | listener.c | 401 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags); local 402 if (new_fd < 0) 407 evutil_closesocket(new_fd); 412 evutil_closesocket(new_fd); 420 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen, 427 evutil_closesocket(new_fd);
|
/netbsd-current/external/bsd/libevent/dist/ |
H A D | listener.c | 408 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags); local 409 if (new_fd < 0) 414 evutil_closesocket(new_fd); 419 evutil_closesocket(new_fd); 427 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen,
|
/netbsd-current/external/bsd/unbound/dist/util/ |
H A D | netevent.c | 1222 int new_fd; local 1225 new_fd = accept(c->fd, (struct sockaddr*)addr, addrlen); 1228 new_fd = accept4(c->fd, (struct sockaddr*)addr, addrlen, SOCK_NONBLOCK); 1230 if(new_fd == -1) { 1310 close(new_fd); 1315 fd_set_nonblock(new_fd); 1317 return new_fd; 1416 int new_fd; local 1470 new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.remote_addr, 1472 if(new_fd [all...] |
/netbsd-current/external/bsd/ntp/dist/lib/isc/win32/ |
H A D | socket.c | 2382 SOCKET new_fd; local 2390 new_fd = socket(parent->pf, SOCK_STREAM, IPPROTO_TCP); 2395 nsock->fd = new_fd;
|