/openbsd-current/regress/sys/kern/pledge/generic/ |
H A D | pty.h | 1 /* $OpenBSD: pty.h,v 1.1 2024/06/03 08:02:22 anton Exp $ */ 3 struct pty { struct 12 int pty_open(struct pty *); 13 void pty_close(struct pty *); 14 int pty_detach(struct pty *); 15 int pty_attach(struct pty *); 16 int pty_drain(struct pty *pty); 19 pty_buffer(struct pty *pty) argument [all...] |
H A D | pty.c | 1 /* $OpenBSD: pty.c,v 1.1 2024/06/03 08:02:22 anton Exp $ */ 10 #include "pty.h" 13 pty_open(struct pty *pty) argument 37 pty->master = master; 38 pty->slave = slave; 43 pty_close(struct pty *pty) argument 45 close(pty->slave); 46 close(pty 53 pty_detach(struct pty *pty) argument 69 pty_attach(struct pty *pty) argument 79 pty_drain(struct pty *pty) argument [all...] |
H A D | Makefile | 3 SRCS= main.c manager.c test_stdio.c test_tty.c pty.c
|
H A D | manager.c | 35 #include "pty.h" 172 struct pty pty = {0}; local 203 if (pty_open(&pty)) { 225 if (pty_detach(&pty)) { 233 if (pty_attach(&pty)) { 253 if (pty_drain(&pty)) { 326 int syscall = grab_syscall(pid, pty_buffer(&pty)); 347 pty_close(&pty);
|
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | struct-cpy-1.c | 21 static struct tty_driver pty; variable in typeref:struct:tty_driver 25 pty.t = zero_t; 26 pty.t.a = 1; 27 pty.t.b = 2; 28 pty.t.c = 3; 29 pty.t.d = 4; 37 if (pty.t.a != 1 38 || pty.t.b != 2 39 || pty.t.c != 3 40 || pty [all...] |
/openbsd-current/regress/sys/kern/kqueue/ |
H A D | Makefile | 6 kqueue-pty.c kqueue-tun.c kqueue-signal.c kqueue-fdpass.c \ 27 kq-pty-1: ${PROG} 29 kq-pty-2: ${PROG} 63 TESTS+= kq-pty-1 64 TESTS+= kq-pty-2 78 REGRESS_ROOT_TARGETS=kq-pty-1
|
/openbsd-current/regress/sys/kern/select/ |
H A D | Makefile | 10 IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
|
/openbsd-current/regress/usr.bin/ssh/unittests/authopt/testdata/ |
H A D | mktestdata.sh | 22 -Opermit-pty -Opermit-user-rc -Opermit-X11-forwarding 27 sign no_pty.cert -Ono-pty 33 sign only_pty.cert -Oclear -Opermit-pty
|
/openbsd-current/regress/sys/kern/poll/ |
H A D | Makefile | 12 IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
|
/openbsd-current/sbin/ldattach/ |
H A D | ldattach.c | 22 * received on the tty(4) device to the master device of a pty(4) pair. 65 relay(int device, int pty) argument 72 pfd[1].fd = pty; 97 n ? "pty" : "device"); 102 n ? "pty" : "device"); 118 int ch, fd, master = -1, slave, pty = 0, ldisc, nodaemon = 0; local 152 pty = 1; 294 * open a pty(4) pair to pass the data if the -p option has been 297 if (pty) { 299 errx(1, "can't open a pty"); [all...] |
/openbsd-current/regress/sys/kern/ |
H A D | Makefile | 15 SUBDIR+= pipe pledge poll pread preadv ptmget ptrace ptrace2 pty pwrite pwritev
|
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/ |
H A D | _fork_pty.py | 6 from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD) 11 should be more portable than the pty.fork() function. Specifically, 15 resolve the issue with Python's pty.fork() not supporting Solaris, 45 more portable than the pty.fork() function. Specifically, this should 72 # Verify we can open child pty.
|
H A D | ptyprocess.py | 6 import pty namespace 20 from pty import (STDIN_FILENO, CHILD) 26 # Solaris uses internal __fork_pty(). All others use pty.fork(). 184 This does all the fork/exec type of stuff for a pty, and returns an 226 pid, fd = pty.fork() 383 '''This returns the file descriptor of the pty for the child. 416 the child pty may not appear as a terminal device. This means 504 """Read and return at most ``size`` bytes from the pty. 811 """Read at most ``size`` bytes from the pty, return them as unicode.
|
/openbsd-current/lib/libutil/ |
H A D | Makefile | 11 login_tty.c logout.c logwtmp.c opendev.c passwd.c pty.c readlabel.c \
|
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
H A D | pty_spawn.py | 4 import pty namespace 191 self.STDIN_FILENO = pty.STDIN_FILENO 192 self.STDOUT_FILENO = pty.STDOUT_FILENO 193 self.STDERR_FILENO = pty.STDERR_FILENO 241 fork/exec type of stuff for a pty. This is called by __init__. If args 313 '''Spawn a pty and return an instance of PtyProcess.''' 337 the child pty may not appear as a terminal device. This means
|
/openbsd-current/etc/etc.octeon/ |
H A D | MAKEDEV | 45 # ptm pty master device 46 # pty* Set of 62 master pseudo terminals 385 pty*) 387 echo bad unit for pty in: $i 402 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.hppa/ |
H A D | MAKEDEV | 45 # ptm pty master device 46 # pty* Set of 62 master pseudo terminals 412 pty*) 414 echo bad unit for pty in: $i 429 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.macppc/ |
H A D | MAKEDEV | 46 # ptm pty master device 47 # pty* Set of 62 master pseudo terminals 445 pty*) 447 echo bad unit for pty in: $i 462 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.loongson/ |
H A D | MAKEDEV | 44 # ptm pty master device 45 # pty* Set of 62 master pseudo terminals 414 pty*) 416 echo bad unit for pty in: $i 431 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.armv7/ |
H A D | MAKEDEV | 44 # ptm pty master device 45 # pty* Set of 62 master pseudo terminals 431 pty*) 433 echo bad unit for pty in: $i 448 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.luna88k/ |
H A D | MAKEDEV | 45 # ptm pty master device 46 # pty* Set of 62 master pseudo terminals 339 pty*) 341 echo bad unit for pty in: $i 356 M pty$nam c 5 $(($off+$n))
|
/openbsd-current/etc/etc.arm64/ |
H A D | MAKEDEV | 43 # ptm pty master device 44 # pty* Set of 62 master pseudo terminals 457 pty*) 459 echo bad unit for pty in: $i 474 M pty$nam c 6 $(($off+$n))
|
/openbsd-current/etc/etc.powerpc64/ |
H A D | MAKEDEV | 44 # ptm pty master device 45 # pty* Set of 62 master pseudo terminals 443 pty*) 445 echo bad unit for pty in: $i 460 M pty$nam c 6 $(($off+$n))
|
/openbsd-current/etc/etc.riscv64/ |
H A D | MAKEDEV | 43 # ptm pty master device 44 # pty* Set of 62 master pseudo terminals 447 pty*) 449 echo bad unit for pty in: $i 464 M pty$nam c 6 $(($off+$n))
|
/openbsd-current/etc/etc.landisk/ |
H A D | MAKEDEV | 44 # ptm pty master device 45 # pty* Set of 62 master pseudo terminals 409 pty*) 411 echo bad unit for pty in: $i 426 M pty$nam c 5 $(($off+$n))
|