Searched refs:new_fd (Results 1 – 7 of 7) sorted by relevance
| /openbsd/src/gnu/llvm/lldb/tools/lldb-vscode/ |
| D | OutputRedirector.cpp | 24 int new_fd[2]; in RedirectFd() local 26 if (_pipe(new_fd, 4096, O_TEXT) == -1) { in RedirectFd() 28 if (pipe(new_fd) == -1) { in RedirectFd() 36 if (dup2(new_fd[1], fd) == -1) { in RedirectFd() 43 int read_fd = new_fd[0]; in RedirectFd()
|
| /openbsd/src/regress/lib/libpthread/stdfiles/ |
| D | stdfiles.c | 24 int new_fd; in main() local 84 new_fd = open("/dev/tty", O_RDWR|O_CREAT, 0666); in main() 85 assert(new_fd == STDERR_FILENO); in main()
|
| /openbsd/src/usr.bin/ssh/ |
| D | mux.c | 326 int r, new_fd[3]; in mux_master_process_new_session() local 387 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { in mux_master_process_new_session() 390 close(new_fd[j]); in mux_master_process_new_session() 404 new_fd[0], new_fd[1], new_fd[2]); in mux_master_process_new_session() 412 close(new_fd[0]); in mux_master_process_new_session() 413 close(new_fd[1]); in mux_master_process_new_session() 414 close(new_fd[2]); in mux_master_process_new_session() 437 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1) in mux_master_process_new_session() 448 new_fd[0], new_fd[1], new_fd[2], window, packetmax, in mux_master_process_new_session() 952 int ok = 0, cport, r, new_fd[2]; in mux_master_process_stdio_fwd() local [all …]
|
| /openbsd/src/usr.sbin/pppd/ |
| D | main.c | 1114 int new_fd; in run_program() local 1138 new_fd = open (_PATH_DEVNULL, O_RDWR); in run_program() 1139 if (new_fd >= 0) { in run_program() 1140 if (new_fd != 0) { in run_program() 1141 dup2 (new_fd, 0); /* stdin <- /dev/null */ in run_program() 1142 close (new_fd); in run_program()
|
| /openbsd/src/sbin/unwind/libunbound/util/ |
| D | netevent.c | 1223 int new_fd; local 1226 new_fd = accept(c->fd, (struct sockaddr*)addr, addrlen); 1229 new_fd = accept4(c->fd, (struct sockaddr*)addr, addrlen, SOCK_NONBLOCK); 1231 if(new_fd == -1) { 1311 close(new_fd); 1316 fd_set_nonblock(new_fd); 1318 return new_fd; 1417 int new_fd; local 1471 new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.remote_addr, 1473 if(new_fd == -1) [all …]
|
| /openbsd/src/usr.sbin/unbound/util/ |
| D | netevent.c | 1223 int new_fd; local 1226 new_fd = accept(c->fd, (struct sockaddr*)addr, addrlen); 1229 new_fd = accept4(c->fd, (struct sockaddr*)addr, addrlen, SOCK_NONBLOCK); 1231 if(new_fd == -1) { 1311 close(new_fd); 1316 fd_set_nonblock(new_fd); 1318 return new_fd; 1417 int new_fd; local 1471 new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.remote_addr, 1473 if(new_fd == -1) [all …]
|
| /openbsd/src/gnu/usr.bin/perl/ |
| D | perlio.c | 2674 S_more_refcounted_fds(pTHX_ const int new_fd) in S_more_refcounted_fds() argument 2678 const int new_max = 16 + (new_fd & ~15); in S_more_refcounted_fds() 2686 old_max, new_fd, new_max) ); in S_more_refcounted_fds() 2688 if (new_fd < old_max) { in S_more_refcounted_fds() 2692 assert (new_max > new_fd); in S_more_refcounted_fds()
|