/third_party/python/Lib/ |
D | pty.py | 34 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/ |
D | cve-2014-0196.c | 41 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/ |
D | test_pty.py | 165 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/ |
D | test_pty.rs | 35 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/ |
D | pvr_winsys.c | 42 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()
|
D | pvr_winsys_helper.h | 43 int pvr_winsys_helper_display_buffer_create(int master_fd, 46 int pvr_winsys_helper_display_buffer_destroy(int master_fd, uint32_t handle);
|
D | pvr_winsys_helper.c | 37 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/ |
D | telnetd.c | 275 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/ |
D | pvr_srv_bo.c | 61 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()
|
D | pvr_srv_public.h | 31 struct pvr_winsys *pvr_srv_winsys_create(int master_fd,
|
D | pvr_srv.h | 71 int master_fd; member
|
D | pvr_srv.c | 619 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/ |
D | test-tty.c | 440 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/ |
D | panvk_device.c | 225 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()
|
D | panvk_wsi.c | 49 physical_device->master_fd, NULL, in panvk_wsi_init()
|
/third_party/mesa3d/src/imagination/vulkan/ |
D | pvr_device.c | 223 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 …]
|
D | pvr_wsi.c | 53 pdevice->master_fd, in pvr_wsi_init()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_device.c | 295 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 …]
|
D | v3dv_wsi.c | 57 physical_device->master_fd, NULL, false); in v3dv_wsi_init()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_drm.c | 632 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()
|
D | tu_wsi.c | 41 physical_device->master_fd, in tu_wsi_init()
|
/third_party/mesa3d/src/imagination/vulkan/winsys/powervr/ |
D | pvr_drm.c | 30 struct pvr_winsys *pvr_drm_winsys_create(int master_fd, in pvr_drm_winsys_create() argument
|
D | pvr_drm_public.h | 31 struct pvr_winsys *pvr_drm_winsys_create(int master_fd,
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_wsi.c | 48 physical_device->master_fd, in anv_init_wsi()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_wsi.c | 95 physical_device->master_fd, &physical_device->instance->dri_options, false); in radv_init_wsi()
|