/third_party/node/deps/uv/src/unix/ |
H A D | linux-syscalls.c | 214 int uv__dup3(int oldfd, int newfd, int flags) { in uv__dup3() argument 218 return syscall(__NR_dup3, oldfd, newfd, flags); in uv__dup3()
|
H A D | linux-syscalls.h | 63 int uv__dup3(int oldfd, int newfd, int flags);
|
H A D | core.c | 1052 int uv__dup2_cloexec(int oldfd, int newfd) { in uv__dup2_cloexec() argument 1056 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec() 1065 r = dup2(oldfd, newfd); /* Never retry. */ in uv__dup2_cloexec() 1069 err = uv__cloexec(newfd, 1); in uv__dup2_cloexec() 1071 uv__close(newfd); in uv__dup2_cloexec()
|
H A D | internal.h | 240 int uv__dup2_cloexec(int oldfd, int newfd);
|
/third_party/libfuse/example/ |
H A D | passthrough_ll.c | 312 int newfd; in lo_do_lookup() local 322 newfd = openat(lo_fd(req, parent), name, O_PATH | O_NOFOLLOW); in lo_do_lookup() 323 if (newfd == -1) in lo_do_lookup() 326 res = fstatat(newfd, "", &e->attr, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW); in lo_do_lookup() 332 close(newfd); in lo_do_lookup() 333 newfd = -1; in lo_do_lookup() 343 inode->fd = newfd; in lo_do_lookup() 366 if (newfd != -1) in lo_do_lookup() 367 close(newfd); in lo_do_lookup()
|
H A D | passthrough_hp.cc | 323 auto newfd = openat(get_fs_fd(parent), name, O_PATH | O_NOFOLLOW); in do_lookup() local 324 if (newfd == -1) in do_lookup() 327 auto res = fstatat(newfd, "", &e->attr, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW); in do_lookup() 330 close(newfd); in do_lookup() 378 close(newfd); in do_lookup() 394 inode.fd = newfd; in do_lookup()
|
/third_party/curl/tests/server/ |
H A D | socksd.c | 754 curl_socket_t newfd = accept(sockfd, NULL, NULL); in incoming() local 755 if(CURL_SOCKET_BAD == newfd) { in incoming() 764 "Read config from %s", newfd, configfile); in incoming() 765 remotefd = sockit(newfd); /* SOCKS until done */ in incoming() 768 sclose(newfd); in incoming() 778 cp->clientfd = newfd; in incoming()
|
H A D | mqttd.c | 769 curl_socket_t newfd = accept(sockfd, NULL, NULL); in incoming() local 770 if(CURL_SOCKET_BAD == newfd) { in incoming() 777 "Read config from %s", newfd, configfile); in incoming() 779 (void)mqttit(newfd); /* until done */ in incoming() 783 sclose(newfd); in incoming()
|
H A D | sockfilt.c | 1159 curl_socket_t newfd = accept(sockfd, NULL, NULL); in juggle() local 1160 if(CURL_SOCKET_BAD == newfd) { in juggle() 1169 *sockfdp = newfd; /* store the new socket */ in juggle()
|
/third_party/FreeBSD/lib/libc/gen/ |
H A D | fts.c | 1127 int ret, oerrno, newfd; in fts_safe_changedir() local 1130 newfd = fd; in fts_safe_changedir() 1133 if (fd < 0 && (newfd = _open(path, O_RDONLY | O_DIRECTORY | in fts_safe_changedir() 1136 if (_fstat(newfd, &sb)) { in fts_safe_changedir() 1145 ret = fchdir(newfd); in fts_safe_changedir() 1149 (void)_close(newfd); in fts_safe_changedir()
|
/third_party/ltp/testcases/kernel/syscalls/linkat/ |
H A D | linkat01.c | 93 int *newfd; member 238 (*desc->oldfd, desc->oldfn, *desc->newfd, desc->newfn, in mylinkat_test()
|
/third_party/toybox/toys/pending/ |
H A D | crond.c | 453 int newfd = prog ? 0 : 1; in do_fork() local 454 if (fd != newfd) { in do_fork() 455 dup2(fd, newfd); in do_fork()
|
/third_party/python/Modules/ |
H A D | socketmodule.c | 2743 SOCKET_T newfd; in sock_accept() local 2761 newfd = ctx.result; in sock_accept() 2764 if (!SetHandleInformation((HANDLE)newfd, HANDLE_FLAG_INHERIT, 0)) { in sock_accept() 2766 SOCKETCLOSE(newfd); in sock_accept() 2775 if (_Py_set_inheritable(newfd, 0, NULL) < 0) { in sock_accept() 2776 SOCKETCLOSE(newfd); in sock_accept() 2782 sock = PyLong_FromSocket_t(newfd); in sock_accept() 2784 SOCKETCLOSE(newfd); in sock_accept() 6053 SOCKET_T fd, newfd; local 6067 newfd [all...] |
/third_party/ltp/include/ |
H A D | tst_safe_macros.h | 58 int safe_dup2(const char *file, const int lineno, int oldfd, int newfd); 60 #define SAFE_DUP2(oldfd, newfd) \ 61 safe_dup2(__FILE__, __LINE__, (oldfd), (newfd))
|
/third_party/libuv/src/unix/ |
H A D | core.c | 1112 int uv__dup2_cloexec(int oldfd, int newfd) { in uv__dup2_cloexec() argument 1116 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec() 1125 r = dup2(oldfd, newfd); /* Never retry. */ in uv__dup2_cloexec() 1129 err = uv__cloexec(newfd, 1); in uv__dup2_cloexec() 1131 uv__close(newfd); in uv__dup2_cloexec()
|
H A D | internal.h | 290 int uv__dup2_cloexec(int oldfd, int newfd);
|
/third_party/rust/crates/nix/src/ |
H A D | unistd.rs | 441 pub fn dup2(oldfd: RawFd, newfd: RawFd) -> Result<RawFd> { in dup2() 442 let res = unsafe { libc::dup2(oldfd, newfd) }; in dup2() 452 pub fn dup3(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { in dup3() 453 dup3_polyfill(oldfd, newfd, flags) in dup3() 457 fn dup3_polyfill(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { in dup3_polyfill() 458 if oldfd == newfd { in dup3_polyfill() 462 let fd = dup2(oldfd, newfd)?; in dup3_polyfill()
|
/third_party/elfutils/debuginfod/ |
H A D | debuginfod.cxx | 1261 int newfd; 1263 newfd = open(fdpath, O_RDONLY); 1265 newfd = -1; 1267 return newfd;
|
/third_party/rust/crates/libc/src/ |
H A D | wasi.rs | 733 pub fn __wasilibc_fd_renumber(fd: c_int, newfd: c_int) -> c_int; in __wasilibc_fd_renumber()
|
/third_party/python/Lib/test/ |
H A D | _test_multiprocessing.py | 3318 for newfd in range(256, MAXFD): 3319 if not self._is_fd_assigned(newfd): 3323 os.dup2(fd, newfd) 3325 reduction.send_handle(conn, newfd, p.pid) 3327 os.close(newfd)
|
H A D | test_os.py | 1541 newfd = os.dup(1) 1542 self.addCleanup(os.close, newfd) 1543 self.assertEqual(newfd, minfd)
|
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/ |
H A D | mod.rs | 1796 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
H A D | mod.rs | 4024 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3() 4405 newfd: ::c_int, in posix_spawn_file_actions_adddup2()
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/ |
H A D | mod.rs | 2871 newfd: ::c_int, in posix_spawn_file_actions_adddup2()
|
/third_party/rust/crates/libc/src/unix/nto/ |
H A D | mod.rs | 3041 newfd: ::c_int, in posix_spawn_file_actions_adddup2()
|