Searched refs:aslave (Results 1 – 5 of 5) sorted by relevance
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-openpty.c | 77 openpty_streams(int *amaster, int *aslave) in openpty_streams() argument 104 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { in openpty_streams() 114 if (ioctl(*aslave, I_FIND, "ptem") != 0) in openpty_streams() 122 ioctl(*aslave, I_PUSH, "ptem"); in openpty_streams() 123 ioctl(*aslave, I_PUSH, "ldterm"); in openpty_streams() 125 ioctl(*aslave, I_PUSH, "ttcompat"); in openpty_streams() 146 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { in openpty() 168 r = openpty_streams(amaster, aslave); in openpty() 172 junk_ttyfd = *aslave; in openpty() 179 return openpty_streams(amaster, aslave); in openpty() [all …]
|
/freebsd/contrib/netbsd-tests/kernel/kqueue/write/ |
H A D | t_ttypty.c | 61 int amaster, aslave, acurrent; in h_check() local 63 RL(openpty(&amaster, &aslave, slavetty, NULL, NULL)); in h_check() 65 amaster, aslave, slavetty); in h_check() 66 acurrent = check_master ? amaster : aslave; in h_check() 72 n = read(check_master ? aslave : amaster, buffer, 128); in h_check()
|
/freebsd/contrib/netbsd-tests/kernel/kqueue/read/ |
H A D | t_ttypty.c | 57 int amaster, aslave, acurrent; in h_check() local 65 RL(openpty(&amaster, &aslave, slavetty, NULL, NULL)); in h_check() 68 amaster, aslave, slavetty); in h_check() 69 acurrent = check_master ? amaster : aslave; in h_check() 76 (void)write(check_master ? aslave : amaster, "f00\n", 4); in h_check()
|
/freebsd/usr.bin/bluetooth/rfcomm_sppd/ |
H A D | rfcomm_sppd.c | 65 static int sppd_ttys_open (char **tty, int *amaster, int *aslave); 81 s, amaster, aslave, fd, doserver, in main() local 180 if (sppd_ttys_open(&tty, &amaster, &aslave) < 0) in main() 360 close(aslave); in main() 369 sppd_ttys_open(char **tty, int *amaster, int *aslave) in sppd_ttys_open() argument 376 if (openpty(amaster, aslave, pty, &tio, NULL) == -1) { in sppd_ttys_open() 383 close(*aslave); in sppd_ttys_open()
|
/freebsd/lib/libutil/ |
H A D | pty.c | 47 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument 72 *aslave = slave; in openpty()
|