/third_party/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 …]
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 125 int new_fd; in test_max_hugepages() local 136 new_fd = sys_memfd_create("new_file", MFD_HUGETLB); in test_max_hugepages() 137 if (new_fd < 0) in test_max_hugepages() 141 new_mem = mmap(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 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 154 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 158 SAFE_CLOSE(new_fd); in test_max_hugepages()
|
/third_party/mesa3d/src/gallium/auxiliary/pipe-loader/ |
D | pipe_loader_drm.c | 188 int new_fd; in pipe_loader_drm_probe_fd() local 190 if (fd < 0 || (new_fd = os_dupfd_cloexec(fd)) < 0) in pipe_loader_drm_probe_fd() 193 ret = pipe_loader_drm_probe_fd_nodup(dev, new_fd); in pipe_loader_drm_probe_fd() 195 close(new_fd); in pipe_loader_drm_probe_fd()
|
/third_party/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 25 static int new_fd = 5; variable 34 {&old_fd, &new_fd, INVALID_FLAG}
|
/third_party/python/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)
|
/third_party/gstreamer/gstreamer/plugins/elements/ |
D | gstfdsink.c | 436 gst_fd_sink_update_fd (GstFdSink * fdsink, int new_fd, GError ** error) in gst_fd_sink_update_fd() argument 438 if (new_fd < 0) { in gst_fd_sink_update_fd() 440 "File descriptor %d is not valid", new_fd); in gst_fd_sink_update_fd() 444 if (!gst_fd_sink_check_fd (fdsink, new_fd, error)) in gst_fd_sink_update_fd() 455 fd.fd = new_fd; in gst_fd_sink_update_fd() 459 fdsink->fd = new_fd; in gst_fd_sink_update_fd()
|
D | gstfdsrc.c | 202 fdsrc->new_fd = DEFAULT_FD; in gst_fd_src_init() 235 src->new_fd); in gst_fd_src_update_fd() 248 fd.fd = src->new_fd; in gst_fd_src_update_fd() 254 if (src->fd != src->new_fd) { in gst_fd_src_update_fd() 255 GST_INFO_OBJECT (src, "Updating to fd %d", src->new_fd); in gst_fd_src_update_fd() 257 src->fd = src->new_fd; in gst_fd_src_update_fd() 373 src->new_fd = g_value_get_int (value); in gst_fd_src_set_property() 906 src->new_fd = fd; in gst_fd_src_uri_set_uri()
|
D | gstfdsrc.h | 59 gint new_fd; member
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_fence.c | 453 sync_merge_fd(int sync_fd, int new_fd) in sync_merge_fd() argument 456 return new_fd; in sync_merge_fd() 458 if (new_fd == -1) in sync_merge_fd() 463 .fd2 = new_fd, in sync_merge_fd() 468 close(new_fd); in sync_merge_fd()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_fence.c | 401 sync_merge_fd(int sync_fd, int new_fd) in sync_merge_fd() argument 404 return new_fd; in sync_merge_fd() 406 if (new_fd == -1) in sync_merge_fd() 411 .fd2 = new_fd, in sync_merge_fd() 416 close(new_fd); in sync_merge_fd()
|
/third_party/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()
|
/third_party/node/deps/uvwasi/include/ |
D | uvwasi.h | 202 uvwasi_fd_t new_fd, 230 uvwasi_fd_t new_fd,
|
/third_party/node/deps/uvwasi/src/ |
D | uvwasi.c | 1755 uvwasi_fd_t new_fd, in uvwasi_path_link() argument 1774 new_fd, in uvwasi_path_link() 1783 if (old_fd == new_fd) { in uvwasi_path_link() 1803 new_fd, in uvwasi_path_link() 1847 if (old_fd != new_fd) in uvwasi_path_link() 2127 uvwasi_fd_t new_fd, in uvwasi_path_rename() argument 2144 new_fd, in uvwasi_path_rename() 2153 if (old_fd == new_fd) { in uvwasi_path_rename() 2173 new_fd, in uvwasi_path_rename() 2217 if (old_fd != new_fd) in uvwasi_path_rename()
|
/third_party/node/src/ |
D | node_wasi.cc | 1135 uint32_t new_fd; in PathLink() local 1145 CHECK_TO_TYPE_OR_RETURN(args, args[4], Uint32, new_fd); in PathLink() 1155 new_fd, in PathLink() 1166 new_fd, in PathLink() 1305 uint32_t new_fd; in PathRename() local 1314 CHECK_TO_TYPE_OR_RETURN(args, args[3], Uint32, new_fd); in PathRename() 1323 new_fd, in PathRename() 1333 new_fd, in PathRename()
|
/third_party/libbpf/src/ |
D | libbpf.c | 4721 int new_fd, err; local 4740 new_fd = open("/", O_RDONLY | O_CLOEXEC); 4741 if (new_fd < 0) { 4746 new_fd = dup3(fd, new_fd, O_CLOEXEC); 4747 if (new_fd < 0) { 4759 map->fd = new_fd; 4774 close(new_fd);
|
/third_party/python/Doc/library/ |
D | os.rst | 3952 (``os.POSIX_SPAWN_DUP2``, *fd*, *new_fd*) 3954 Performs ``os.dup2(fd, new_fd)``.
|
/third_party/libevdev/ |
D | third_party_libevdev.diff | 18489 -<div class="line"><span class="keywordtype">int</span> fd, new_fd, uifd;</div> 23192 - * int fd, new_fd, uifd;
|
/third_party/gstreamer/gstreamer/ |
D | ChangeLog | 79902 Initialize new_fd with DEFAULT_FD and fd with -1. Setting the property will set 79903 new_fd and in _update_fd() we cehck fd against -1. Also add a coment about the
|