Home
last modified time | relevance | path

Searched refs:master_fd (Results 1 – 25 of 41) sorted by relevance

12

/third_party/python/Lib/
Dpty.py34 master_fd, slave_name = _open_terminal()
36 return master_fd, slave_fd
44 master_fd, slave_fd = os.openpty()
50 return master_fd, slave_name
101 master_fd, slave_fd = openpty()
106 os.close(master_fd)
122 return pid, master_fd
134 def _copy(master_fd, master_read=_read, stdin_read=_read): argument
139 fds = [master_fd, STDIN_FILENO]
143 if master_fd in rfds:
[all …]
/third_party/ltp/testcases/cve/
Dcve-2014-0196.c41 static volatile int master_fd, slave_fd; variable
90 create_pty((int *)&master_fd, (int *)&slave_fd); in run()
100 tcgetattr(master_fd, &t); in run()
103 tcsetattr(master_fd, TCSANOW, &t); in run()
106 SAFE_WRITE(0, master_fd, "A", 1); in run()
119 ioctl(master_fd, 0xdeadbeef); in run()
121 SAFE_CLOSE(master_fd); in run()
136 close(master_fd); in cleanup()
/third_party/python/Lib/test/
Dtest_pty.py165 master_fd, slave_fd = pty.openpty(mode, new_stdin_winsz)
167 master_fd, slave_fd = pty.openpty()
176 self.addCleanup(os.close, master_fd)
189 blocking = os.get_blocking(master_fd)
191 os.set_blocking(master_fd, False)
193 s1 = os.read(master_fd, 1024)
200 os.set_blocking(master_fd, blocking)
204 s1 = _readline(master_fd)
211 s2 = _readline(master_fd)
216 pid, master_fd = pty.fork()
[all …]
/third_party/rust/crates/nix/test/
Dtest_pty.rs35 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_equivalence() localVariable
36 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_equivalence()
39 let slave_name = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_equivalence()
40 let slave_name_r = ptsname_r(&master_fd).unwrap(); in test_ptsname_equivalence()
52 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_copy() localVariable
53 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_copy()
56 let slave_name1 = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_copy()
57 let slave_name2 = unsafe { ptsname(&master_fd) }.unwrap(); in test_ptsname_copy()
69 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_r_copy() localVariable
70 assert!(master_fd.as_raw_fd() > 0); in test_ptsname_r_copy()
[all …]
/third_party/mesa3d/src/imagination/vulkan/winsys/
Dpvr_winsys.c42 struct pvr_winsys *pvr_winsys_create(int master_fd, in pvr_winsys_create() argument
74 return pvr_srv_winsys_create(master_fd, render_fd, alloc); in pvr_winsys_create()
77 return pvr_drm_winsys_create(master_fd, render_fd, alloc); in pvr_winsys_create()
Dpvr_winsys_helper.h43 int pvr_winsys_helper_display_buffer_create(int master_fd,
46 int pvr_winsys_helper_display_buffer_destroy(int master_fd, uint32_t handle);
Dpvr_winsys_helper.c37 int pvr_winsys_helper_display_buffer_create(int master_fd, in pvr_winsys_helper_display_buffer_create() argument
48 ret = drmIoctl(master_fd, DRM_IOCTL_MODE_CREATE_DUMB, &args); in pvr_winsys_helper_display_buffer_create()
57 int pvr_winsys_helper_display_buffer_destroy(int master_fd, uint32_t handle) in pvr_winsys_helper_display_buffer_destroy() argument
63 return drmIoctl(master_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &args); in pvr_winsys_helper_display_buffer_destroy()
/third_party/toybox/toys/pending/
Dtelnetd.c275 int pty_fd, new_fd, c = 0, w, master_fd = 0; in telnetd_main() local
281 master_fd = listen_socket(); in telnetd_main()
282 fcntl(master_fd, F_SETFD, FD_CLOEXEC); in telnetd_main()
283 if (master_fd > TT.gmax_fd) TT.gmax_fd = master_fd; in telnetd_main()
286 pty_fd = new_session(master_fd); //master_fd = 0 in telnetd_main()
308 if (!FLAG(i)) FD_SET(master_fd, &rd); in telnetd_main()
327 if (!FLAG(i) && FD_ISSET(master_fd, &rd)) { //accept new connection in telnetd_main()
328 new_fd = accept(master_fd, NULL, NULL); in telnetd_main()
/third_party/mesa3d/src/imagination/vulkan/winsys/pvrsrvkm/
Dpvr_srv_bo.c61 pvr_winsys_helper_display_buffer_create(srv_ws->master_fd, size, &handle); in pvr_srv_alloc_display_pmr()
65 ret = drmPrimeHandleToFD(srv_ws->master_fd, handle, O_CLOEXEC, &fd); in pvr_srv_alloc_display_pmr()
92 pvr_winsys_helper_display_buffer_destroy(srv_ws->master_fd, handle); in pvr_srv_alloc_display_pmr()
112 pvr_winsys_helper_display_buffer_destroy(srv_ws->master_fd, in buffer_release()
300 drmPrimeHandleToFD(srv_ws->master_fd, srv_bo->handle, O_CLOEXEC, fd_out); in pvr_srv_winsys_buffer_get_fd()
Dpvr_srv_public.h31 struct pvr_winsys *pvr_srv_winsys_create(int master_fd,
Dpvr_srv.h71 int master_fd; member
Dpvr_srv.c619 struct pvr_winsys *pvr_srv_winsys_create(int master_fd, in pvr_srv_winsys_create() argument
647 srv_ws->master_fd = master_fd; in pvr_srv_winsys_create()
/third_party/libuv/test/
Dtest-tty.c440 int master_fd, slave_fd, r; in TEST_IMPL() local
447 r = openpty(&master_fd, &slave_fd, NULL, NULL, &w); in TEST_IMPL()
452 ASSERT(0 == uv_tty_init(&loop, &master_tty, master_fd, 0)); in TEST_IMPL()
466 ASSERT(0 == close(master_fd)); in TEST_IMPL()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_device.c225 if (device->master_fd != -1) in panvk_physical_device_finish()
226 close(device->master_fd); in panvk_physical_device_finish()
257 int master_fd = -1; in panvk_physical_device_init() local
316 master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC); in panvk_physical_device_init()
317 if (master_fd >= 0) { in panvk_physical_device_init()
322 device->master_fd = master_fd; in panvk_physical_device_init()
377 if (master_fd != -1) in panvk_physical_device_init()
378 close(master_fd); in panvk_physical_device_init()
Dpanvk_wsi.c49 physical_device->master_fd, NULL, in panvk_wsi_init()
/third_party/mesa3d/src/imagination/vulkan/
Dpvr_device.c223 if (pdevice->master_fd >= 0) { in pvr_physical_device_finish()
225 close(pdevice->master_fd); in pvr_physical_device_finish()
366 pdevice->master_fd = open(primary_path, O_RDWR | O_CLOEXEC); in pvr_physical_device_init()
368 pdevice->master_fd = -1; in pvr_physical_device_init()
371 if (pdevice->master_fd >= 0) { in pvr_physical_device_init()
383 pdevice->ws = pvr_winsys_create(pdevice->master_fd, in pvr_physical_device_init()
456 if (pdevice->master_fd >= 0) in pvr_physical_device_init()
457 close(pdevice->master_fd); in pvr_physical_device_init()
1610 device->master_fd = open(pdevice->master_path, O_RDWR | O_CLOEXEC); in pvr_CreateDevice()
1612 device->master_fd = -1; in pvr_CreateDevice()
[all …]
Dpvr_wsi.c53 pdevice->master_fd, in pvr_wsi_init()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_device.c295 if (device->master_fd >= 0) in physical_device_finish()
296 close(device->master_fd); in physical_device_finish()
552 if (pdevice->display_fd == - 1 && pdevice->master_fd >= 0) in acquire_display_device_no_surface()
553 pdevice->display_fd = dup(pdevice->master_fd); in acquire_display_device_no_surface()
585 pdevice->master_fd >= 0) { in acquire_display_device_surface()
586 pdevice->display_fd = dup(pdevice->master_fd); in acquire_display_device_surface()
721 int32_t master_fd = -1; in physical_device_init() local
791 master_fd = open(primary_path, O_RDWR | O_CLOEXEC); in physical_device_init()
796 master_fd = open(primary_path, O_RDWR | O_CLOEXEC); in physical_device_init()
806 device->master_fd = master_fd; /* Master vc4 primary node */ in physical_device_init()
[all …]
Dv3dv_wsi.c57 physical_device->master_fd, NULL, false); in v3dv_wsi_init()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_drm.c632 int master_fd = -1; in tu_drm_device_init() local
684 master_fd = open(primary_path, O_RDWR | O_CLOEXEC); in tu_drm_device_init()
685 if (master_fd >= 0) { in tu_drm_device_init()
690 device->master_fd = master_fd; in tu_drm_device_init()
767 if (master_fd != -1) in tu_drm_device_init()
768 close(master_fd); in tu_drm_device_init()
Dtu_wsi.c41 physical_device->master_fd, in tu_wsi_init()
/third_party/mesa3d/src/imagination/vulkan/winsys/powervr/
Dpvr_drm.c30 struct pvr_winsys *pvr_drm_winsys_create(int master_fd, in pvr_drm_winsys_create() argument
Dpvr_drm_public.h31 struct pvr_winsys *pvr_drm_winsys_create(int master_fd,
/third_party/mesa3d/src/intel/vulkan/
Danv_wsi.c48 physical_device->master_fd, in anv_init_wsi()
/third_party/mesa3d/src/amd/vulkan/
Dradv_wsi.c95 physical_device->master_fd, &physical_device->instance->dri_options, false); in radv_init_wsi()

12