Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 18 of 18) sorted by relevance

/third_party/toybox/toys/pending/
Dtelnetd.c42 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/
Dmemfd_create03.c125 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/
Dpipe_loader_drm.c188 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/
Ddup3_02.c25 static int new_fd = 5; variable
34 {&old_fd, &new_fd, INVALID_FLAG}
/third_party/python/Lib/multiprocessing/
Dresource_sharer.py48 new_fd = os.dup(fd)
50 reduction.send_handle(conn, new_fd, pid)
52 os.close(new_fd)
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstfdsink.c436 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()
Dgstfdsrc.c202 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()
Dgstfdsrc.h59 gint new_fd; member
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_fence.c453 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/
Dcrocus_fence.c401 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/
Dintel_sanitize_gpu.c119 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/
Duvwasi.h202 uvwasi_fd_t new_fd,
230 uvwasi_fd_t new_fd,
/third_party/node/deps/uvwasi/src/
Duvwasi.c1755 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/
Dnode_wasi.cc1135 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/
Dlibbpf.c4721 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/
Dos.rst3952 (``os.POSIX_SPAWN_DUP2``, *fd*, *new_fd*)
3954 Performs ``os.dup2(fd, new_fd)``.
/third_party/libevdev/
Dthird_party_libevdev.diff18489 -<div class="line"><span class="keywordtype">int</span> fd, new_fd, uifd;</div>
23192 - * int fd, new_fd, uifd;
/third_party/gstreamer/gstreamer/
DChangeLog79902 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