Searched refs:pty (Results 1 - 25 of 38) sorted by relevance

12

/openbsd-current/regress/sys/kern/pledge/generic/
H A Dpty.h1 /* $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 Dpty.c1 /* $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 DMakefile3 SRCS= main.c manager.c test_stdio.c test_tty.c pty.c
H A Dmanager.c35 #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 Dstruct-cpy-1.c21 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 DMakefile6 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 DMakefile10 IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
/openbsd-current/regress/usr.bin/ssh/unittests/authopt/testdata/
H A Dmktestdata.sh22 -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 DMakefile12 IOCOND_TESTS= fifo pipe pty socket-tcp socket-udp socket-unix
/openbsd-current/sbin/ldattach/
H A Dldattach.c22 * 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 DMakefile15 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.py6 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 Dptyprocess.py6 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 DMakefile11 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 Dpty_spawn.py4 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 DMAKEDEV45 # 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 DMAKEDEV45 # 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 DMAKEDEV46 # 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 DMAKEDEV44 # 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 DMAKEDEV44 # 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 DMAKEDEV45 # 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 DMAKEDEV43 # 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 DMAKEDEV44 # 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 DMAKEDEV43 # 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 DMAKEDEV44 # 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))

Completed in 484 milliseconds

12