Searched refs:amaster (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 101 *amaster = ptm; in openpty_streams() 105 close(*amaster); in openpty_streams() 132 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument 142 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) in openpty() 147 close(*amaster); in openpty() 168 r = openpty_streams(amaster, aslave); in openpty() 171 junk_ptyfd = *amaster; in openpty() 179 return openpty_streams(amaster, aslave); in openpty() 185 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty() [all …]
|
/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() 183 fd = amaster; in main() 188 amaster = STDIN_FILENO; in main() 299 FD_SET(amaster, &rfd); in main() 302 n = select(max(amaster, s) + 1, &rfd, NULL, NULL, NULL); in main() 315 if (FD_ISSET(amaster, &rfd)) { in main() 316 n = sppd_read(amaster, buf, sizeof(buf)); in main() 319 "fd=%d. %s", amaster, strerror(errno)); in main() [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/lib/libutil/ |
H A D | pty.c | 47 openpty(int *amaster, int *aslave, char *name, struct termios *termp, in openpty() argument 71 *amaster = master; in openpty() 88 forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp) in forkpty() argument 110 *amaster = master; in forkpty()
|