/external/toybox/toys/pending/ |
D | telnetd.c | 42 int new_fd, pty_fd; member 275 int pty_fd, new_fd, c = 0, w, master_fd = 0; in telnetd_main() local 290 tm->new_fd = 0; in telnetd_main() 314 if (tm->new_fd >= 0 && tm->buff2_avail < BUFSIZE) FD_SET(tm->new_fd, &rd); in telnetd_main() 317 if (tm->new_fd >= 0 && (tm->buff1_avail - tm->buff1_written) > 0) in telnetd_main() 318 FD_SET(tm->new_fd, &wr); in telnetd_main() 328 new_fd = accept(master_fd, NULL, NULL); in telnetd_main() 329 if (new_fd < 0) continue; in telnetd_main() 331 fcntl(new_fd, F_SETFD, FD_CLOEXEC); in telnetd_main() 332 if (new_fd > TT.gmax_fd) TT.gmax_fd = new_fd; in telnetd_main() [all …]
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 117 int new_fd; in test_max_hugepages() local 128 new_fd = sys_memfd_create("new_file", MFD_HUGETLB); in test_max_hugepages() 129 if (new_fd < 0) in test_max_hugepages() 133 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 138 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 142 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 146 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 150 SAFE_CLOSE(new_fd); in test_max_hugepages()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | ev_epollsig_linux.cc | 811 grpc_fd* new_fd = nullptr; local 815 new_fd = fd_freelist; 820 if (new_fd == nullptr) { 821 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 822 gpr_mu_init(&new_fd->po.mu); 823 new_fd->read_closure.Init(); 824 new_fd->write_closure.Init(); 825 new_fd->error_closure.Init(); 831 gpr_mu_lock(&new_fd->po.mu); 832 new_fd->po.pi = nullptr; [all …]
|
D | ev_epoll1_linux.cc | 319 grpc_fd* new_fd = nullptr; in fd_create() local 323 new_fd = fd_freelist; in fd_create() 328 if (new_fd == nullptr) { in fd_create() 329 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); in fd_create() 330 new_fd->read_closure.Init(); in fd_create() 331 new_fd->write_closure.Init(); in fd_create() 332 new_fd->error_closure.Init(); in fd_create() 334 new_fd->fd = fd; in fd_create() 335 new_fd->read_closure->InitEvent(); in fd_create() 336 new_fd->write_closure->InitEvent(); in fd_create() [all …]
|
D | ev_epollex_linux.cc | 417 grpc_fd* new_fd = nullptr; local 421 new_fd = fd_freelist; 426 if (new_fd == nullptr) { 427 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 428 new_fd->read_closure.Init(); 429 new_fd->write_closure.Init(); 430 new_fd->error_closure.Init(); 433 new_fd->fd = fd; 434 new_fd->salt = gpr_atm_no_barrier_fetch_add(&g_fd_salt, 1); 435 gpr_atm_rel_store(&new_fd->refst, (gpr_atm)1); [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | ev_epoll1_linux.cc | 333 grpc_fd* new_fd = nullptr; in fd_create() local 337 new_fd = fd_freelist; in fd_create() 342 if (new_fd == nullptr) { in fd_create() 343 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); in fd_create() 344 new_fd->read_closure.Init(); in fd_create() 345 new_fd->write_closure.Init(); in fd_create() 346 new_fd->error_closure.Init(); in fd_create() 348 new_fd->fd = fd; in fd_create() 349 new_fd->read_closure->InitEvent(); in fd_create() 350 new_fd->write_closure->InitEvent(); in fd_create() [all …]
|
D | ev_epollex_linux.cc | 427 grpc_fd* new_fd = nullptr; local 431 new_fd = fd_freelist; 436 if (new_fd == nullptr) { 437 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 440 return new (new_fd) grpc_fd(fd, name, track_err);
|
/external/mesa3d/src/gallium/auxiliary/pipe-loader/ |
D | pipe_loader_drm.c | 183 int new_fd; in pipe_loader_drm_probe_fd() local 185 if (fd < 0 || (new_fd = os_dupfd_cloexec(fd)) < 0) in pipe_loader_drm_probe_fd() 188 ret = pipe_loader_drm_probe_fd_nodup(dev, new_fd); in pipe_loader_drm_probe_fd() 190 close(new_fd); in pipe_loader_drm_probe_fd()
|
/external/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 25 static int new_fd = 5; variable 34 {&old_fd, &new_fd, INVALID_FLAG}
|
/external/drm_hwcomposer/utils/ |
D | UniqueFd.h | 105 void Set(int new_fd) { in Set() argument 109 fd_ = new_fd; in Set()
|
/external/libbrillo/brillo/dbus/ |
D | file_descriptor.h | 31 inline FileDescriptor& operator=(int new_fd) { 32 fd.reset(dup(new_fd));
|
/external/python/cpython3/Lib/multiprocessing/ |
D | resource_sharer.py | 48 new_fd = os.dup(fd) 50 reduction.send_handle(conn, new_fd, pid) 52 os.close(new_fd)
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_fence.c | 427 sync_merge_fd(int sync_fd, int new_fd) in sync_merge_fd() argument 430 return new_fd; in sync_merge_fd() 432 if (new_fd == -1) in sync_merge_fd() 437 .fd2 = new_fd, in sync_merge_fd() 442 close(new_fd); in sync_merge_fd()
|
/external/fmtlib/src/ |
D | os.cc | 248 int new_fd = FMT_POSIX_CALL(dup(fd)); in dup() local 249 if (new_fd == -1) in dup() 251 return file(new_fd); in dup()
|
/external/virglrenderer/vtest/ |
D | vtest_server.c | 459 int new_fd = accept(server.socket, NULL, NULL); in vtest_server_wait_clients() local 460 if (new_fd < 0) { in vtest_server_wait_clients() 465 if (vtest_server_add_client(new_fd, new_fd)) { in vtest_server_wait_clients()
|
/external/icu/libandroidicuinit/ |
D | IcuRegistration.cpp | 82 void reset(int new_fd = -1) { in reset() argument 86 fd_ = new_fd; in reset()
|
/external/perfetto/src/base/ |
D | unix_socket.cc | 896 ScopedSocketHandle new_fd(accept(sock_raw_.fd(), nullptr, nullptr)); in OnEvent() local 897 if (!new_fd) in OnEvent() 900 event_listener_, task_runner_, std::move(new_fd), State::kConnected, in OnEvent() 939 ScopedFile new_fd( in OnEvent() local 941 if (!new_fd) in OnEvent() 944 event_listener_, task_runner_, std::move(new_fd), State::kConnected, in OnEvent()
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | select_reuseport.c | 430 int new_fd = accept(srv_fd, NULL, 0); in do_test() local 432 RET_IF(new_fd == -1, "accept(srv_fd)", in do_test() 434 ev.data.u32, new_fd, errno); in do_test() 436 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test() 442 close(new_fd); in do_test()
|
/external/libevent/ |
D | listener.c | 405 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags); in listener_read_cb() local 406 if (new_fd < 0) in listener_read_cb() 411 evutil_closesocket(new_fd); in listener_read_cb() 416 evutil_closesocket(new_fd); in listener_read_cb() 424 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen, in listener_read_cb()
|
/external/mesa3d/src/intel/tools/ |
D | intel_sanitize_gpu.c | 119 dup_drm_fd(int old_fd, int new_fd) in dup_drm_fd() argument 125 _mesa_hash_table_insert(fds_to_bo_sizes, (void*)(uintptr_t)new_fd, in dup_drm_fd()
|
/external/libchrome/base/process/ |
D | launch_posix.cc | 400 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess() local 401 if (new_fd != STDIN_FILENO) { in LaunchProcess()
|
/external/cronet/base/process/ |
D | launch_posix.cc | 381 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess() local 382 if (new_fd != STDIN_FILENO) { in LaunchProcess()
|
/external/ppp/pppd/ |
D | sys-linux.c | 267 static void set_ppp_fd (int new_fd) in set_ppp_fd() argument 269 ppp_fd = new_fd; in set_ppp_fd() 271 ppp_dev_fd = new_fd; in set_ppp_fd()
|
/external/libbpf/src/ |
D | libbpf.c | 4259 int new_fd, err; in bpf_map__reuse_fd() local 4272 new_fd = open("/", O_RDONLY | O_CLOEXEC); in bpf_map__reuse_fd() 4273 if (new_fd < 0) { in bpf_map__reuse_fd() 4278 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd() 4279 if (new_fd < 0) { in bpf_map__reuse_fd() 4291 map->fd = new_fd; in bpf_map__reuse_fd() 4306 close(new_fd); in bpf_map__reuse_fd()
|
/external/python/cpython3/Doc/library/ |
D | os.rst | 3953 (``os.POSIX_SPAWN_DUP2``, *fd*, *new_fd*) 3955 Performs ``os.dup2(fd, new_fd)``.
|