/dports/lang/python37/Python-3.7.12/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/lang/python-tools/Python-3.8.12/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/lang/python38/Python-3.8.12/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/lang/python39/Python-3.9.9/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/test/ |
H A D | test_pty.py | 97 slave_fd = pty.slave_open(slave_name) 98 debug("Got slave_fd '%d'" % slave_fd) 103 self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty') 124 os.write(slave_fd, TEST_STRING_1) 130 os.write(slave_fd, TEST_STRING_2[:5]) 131 os.write(slave_fd, TEST_STRING_2[5:]) 135 os.close(slave_fd)
|
/dports/astro/opencpn/OpenCPN-5.2.4/libs/serial/tests/ |
H A D | unix_serial_tests.cc | 47 if (openpty(&master_fd, &slave_fd, name, NULL, NULL) == -1) { in SetUp() 53 ASSERT_TRUE(slave_fd > 0); in SetUp() 66 int slave_fd; member in __anon5c9ecd9d0111::SerialTests
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/chromeos/process_proxy/ |
H A D | process_proxy.cc | 230 int slave_fd, in LaunchProcess() argument 235 options.fds_to_remap.push_back(std::make_pair(slave_fd, STDIN_FILENO)); in LaunchProcess() 236 options.fds_to_remap.push_back(std::make_pair(slave_fd, STDOUT_FILENO)); in LaunchProcess() 237 options.fds_to_remap.push_back(std::make_pair(slave_fd, STDERR_FILENO)); in LaunchProcess() 242 options.ctrl_terminal_fd = slave_fd; in LaunchProcess()
|
/dports/net-p2p/c-lightning/lightning-0.10.2/tests/ |
H A D | test_wallet.py | 1005 master_fd, slave_fd = os.openpty() 1069 master_fd, slave_fd = os.openpty() 1084 master_fd, slave_fd = os.openpty() 1086 hsmtool.start(stdin=slave_fd, 1094 master_fd, slave_fd = os.openpty() 1095 hsmtool.start(stdin=slave_fd, 1107 master_fd, slave_fd = os.openpty() 1109 hsmtool.start(stdin=slave_fd, 1122 master_fd, slave_fd = os.openpty() 1138 hsmtool.start(stdin=slave_fd, [all …]
|
/dports/accessibility/wl-gammarelay-rs/wl-gammarelay-rs-0.2.1/cargo-crates/nix-0.23.1/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 126 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 130 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 133 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 139 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/shells/nsh/nsh-0.4.2/cargo-crates/nix-0.22.0/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/net/routinator/routinator-0.10.2/cargo-crates/nix-0.22.0/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/security/acmed/acmed-0.18.0/cargo-crates/nix-0.21.2/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/www/uwsgi/uwsgi-2.0.20/plugins/pty/ |
H A D | pty.c | 28 int slave_fd; member 234 if (openpty(&upty.master_fd, &upty.slave_fd, NULL, NULL, NULL)) { in uwsgi_pty_init() 240 …%d slave: %d\n", upty.addr, upty.server_fd, ttyname(upty.slave_fd), upty.master_fd, upty.slave_fd); in uwsgi_pty_init() 251 login_tty(upty.slave_fd); in uwsgi_pty_init()
|
/dports/x11/alacritty/alacritty-0.9.0/cargo-crates/nix-0.22.0/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/x11/inputplug/inputplug-0.4.0/cargo-crates/nix-0.22.2/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/textproc/bat/bat-0.18.3/cargo-crates/nix-0.21.0/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); in open_ptty_pair() localVariable 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; in open_ptty_pair() 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { in open_ptty_pair() 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { in open_ptty_pair() 137 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair()
|
/dports/sysutils/fselect/fselect-0.7.7/cargo-crates/nix-0.22.2/test/ |
H A D | test_pty.rs | 114 let slave_fd = open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()).unwrap(); 124 let r = unsafe { ioctl(slave_fd, I_FIND, ldterm.as_ptr()) }; 128 if unsafe { ioctl(slave_fd, I_PUSH, ptem.as_ptr()) } < 0 { 131 if unsafe { ioctl(slave_fd, I_PUSH, ldterm.as_ptr()) } < 0 { 137 let slave = unsafe { File::from_raw_fd(slave_fd) };
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/hw/virtio/ |
H A D | vhost-user.c | 191 int slave_fd; member 967 size = recvmsg(u->slave_fd, &msgh, 0); in slave_read() 1055 close(u->slave_fd); in slave_read() 1056 u->slave_fd = -1; in slave_read() 1086 u->slave_fd = sv[0]; in vhost_setup_slave_channel() 1106 close(u->slave_fd); in vhost_setup_slave_channel() 1107 u->slave_fd = -1; in vhost_setup_slave_channel() 1337 u->slave_fd = -1; in vhost_user_backend_init() 1429 if (u->slave_fd >= 0) { in vhost_user_backend_cleanup() 1431 close(u->slave_fd); in vhost_user_backend_cleanup() [all …]
|
/dports/net/latd/latd-1.31/ |
H A D | clientsession.cc | 96 if (slave_fd_open) close (slave_fd); in ~ClientSession() 116 close(slave_fd); in do_read()
|
/dports/devel/gnome-builder/gnome-builder-41.3/src/libide/io/ |
H A D | ide-pty-intercept.c | 494 g_auto(IdePtyFd) slave_fd = IDE_PTY_FD_INVALID; in ide_pty_intercept_init() 504 slave_fd = ide_pty_intercept_create_slave (fd, FALSE); in ide_pty_intercept_init() 505 if (slave_fd == IDE_PTY_FD_INVALID) in ide_pty_intercept_init() 512 if (!_ide_pty_intercept_set_raw (slave_fd)) in ide_pty_intercept_init() 520 if (ioctl (slave_fd, TIOCGWINSZ, &ws) >= 0) in ide_pty_intercept_init() 532 self->slave.channel = g_io_channel_unix_new (pty_fd_steal (&slave_fd)); in ide_pty_intercept_init()
|
/dports/emulators/qemu42/qemu-4.2.1/hw/virtio/ |
H A D | vhost-user.c | 208 int slave_fd; member 1006 size = recvmsg(u->slave_fd, &msgh, 0); in slave_read() 1102 close(u->slave_fd); in slave_read() 1103 u->slave_fd = -1; in slave_read() 1133 u->slave_fd = sv[0]; in vhost_setup_slave_channel() 1153 close(u->slave_fd); in vhost_setup_slave_channel() 1154 u->slave_fd = -1; in vhost_setup_slave_channel() 1391 u->slave_fd = -1; in vhost_user_backend_init() 1483 if (u->slave_fd >= 0) { in vhost_user_backend_cleanup() 1485 close(u->slave_fd); in vhost_user_backend_cleanup() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/hw/virtio/ |
H A D | vhost-user.c | 208 int slave_fd; member 1006 size = recvmsg(u->slave_fd, &msgh, 0); in slave_read() 1102 close(u->slave_fd); in slave_read() 1103 u->slave_fd = -1; in slave_read() 1133 u->slave_fd = sv[0]; in vhost_setup_slave_channel() 1153 close(u->slave_fd); in vhost_setup_slave_channel() 1154 u->slave_fd = -1; in vhost_setup_slave_channel() 1391 u->slave_fd = -1; in vhost_user_backend_init() 1483 if (u->slave_fd >= 0) { in vhost_user_backend_cleanup() 1485 close(u->slave_fd); in vhost_user_backend_cleanup() [all …]
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/hw/virtio/ |
H A D | vhost-user.c | 210 int slave_fd; 1012 size = recvmsg(u->slave_fd, &msgh, 0); 1108 close(u->slave_fd); 1109 u->slave_fd = -1; 1139 u->slave_fd = sv[0]; 1159 close(u->slave_fd); 1160 u->slave_fd = -1; 1397 u->slave_fd = -1; 1491 if (u->slave_fd >= 0) { 1493 close(u->slave_fd); [all …]
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/hw/virtio/ |
H A D | vhost-user.c | 210 int slave_fd; member 1012 size = recvmsg(u->slave_fd, &msgh, 0); in slave_read() 1108 close(u->slave_fd); in slave_read() 1109 u->slave_fd = -1; in slave_read() 1139 u->slave_fd = sv[0]; in vhost_setup_slave_channel() 1159 close(u->slave_fd); in vhost_setup_slave_channel() 1160 u->slave_fd = -1; in vhost_setup_slave_channel() 1397 u->slave_fd = -1; in vhost_user_backend_init() 1491 if (u->slave_fd >= 0) { in vhost_user_backend_cleanup() 1493 close(u->slave_fd); in vhost_user_backend_cleanup() [all …]
|