| /freebsd-13-stable/crypto/openssh/ |
| HD | sshtty.c | 71 struct termios tio; in enter_raw_mode() local 73 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode() 78 _saved_tio = tio; in enter_raw_mode() 79 tio.c_iflag |= IGNPAR; in enter_raw_mode() 80 tio.c_iflag &= ~(ISTRIP | INLCR | IGNCR | ICRNL | IXON | IXANY | IXOFF); in enter_raw_mode() 82 tio.c_iflag &= ~IUCLC; in enter_raw_mode() 84 tio.c_lflag &= ~(ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHONL); in enter_raw_mode() 86 tio.c_lflag &= ~IEXTEN; in enter_raw_mode() 88 tio.c_oflag &= ~OPOST; in enter_raw_mode() 89 tio.c_cc[VMIN] = 1; in enter_raw_mode() [all …]
|
| HD | ttymodes.c | 281 struct termios tio; in ssh_tty_make_modes() local 293 if (tcgetattr(fd, &tio) == -1) { in ssh_tty_make_modes() 298 tio = *tiop; in ssh_tty_make_modes() 301 obaud = speed_to_baud(cfgetospeed(&tio)); in ssh_tty_make_modes() 302 ibaud = speed_to_baud(cfgetispeed(&tio)); in ssh_tty_make_modes() 313 special_char_encode(tio.c_cc[NAME]))) != 0) \ in ssh_tty_make_modes() 322 (r = sshbuf_put_u32(buf, ((tio.FIELD & NAME) != 0))) != 0) \ in ssh_tty_make_modes() 345 struct termios tio; in ssh_tty_parse_modes() local 367 if (tcgetattr(fd, &tio) == -1) { in ssh_tty_parse_modes() 383 cfsetispeed(&tio, baud_to_speed(baud)) == -1) in ssh_tty_parse_modes() [all …]
|
| HD | mux.c | 88 struct termios tio; member 451 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1) in mux_master_process_new_session() 1408 cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env); in mux_session_confirm()
|
| HD | channels.c | 2192 struct termios tio; in channel_handle_wfd() local 2258 if (tcgetattr(c->wfd, &tio) == 0 && in channel_handle_wfd() 2259 !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) { in channel_handle_wfd()
|
| /freebsd-13-stable/stand/kboot/ |
| HD | termios.c | 14 host_tcgetattr(int fd, struct host_termios *tio) in host_tcgetattr() argument 16 if (host_ioctl(fd, HOST_TCGETS, (uintptr_t)tio)) in host_tcgetattr() 22 host_tcsetattr(int fd, int act, const struct host_termios *tio) in host_tcsetattr() argument 28 return host_ioctl(fd, HOST_TCSETS+act, (uintptr_t)tio); in host_tcsetattr() 45 int host_cfsetospeed(struct host_termios *tio, host_speed_t speed) in host_cfsetospeed() argument 51 tio->c_cflag &= ~HOST_CBAUD; in host_cfsetospeed() 52 tio->c_cflag |= speed; in host_cfsetospeed() 56 int host_cfsetispeed(struct host_termios *tio, host_speed_t speed) in host_cfsetispeed() argument 58 return speed ? host_cfsetospeed(tio, speed) : 0; in host_cfsetispeed() 62 host_cfsetspeed(struct host_termios *tio, host_speed_t speed) in host_cfsetspeed() argument [all …]
|
| /freebsd-13-stable/sys/cam/ctl/ |
| HD | ctl_tpc.c | 977 struct tpc_io *tio; in tpc_process_verify() local 984 while ((tio = TAILQ_FIRST(&list->allio)) != NULL) { in tpc_process_verify() 985 TAILQ_REMOVE(&list->allio, tio, links); in tpc_process_verify() 986 ctl_free_io(tio->io); in tpc_process_verify() 987 free(tio, M_CTL); in tpc_process_verify() 1018 tio = malloc(sizeof(*tio), M_CTL, M_WAITOK | M_ZERO); in tpc_process_verify() 1019 TAILQ_INIT(&tio->run); in tpc_process_verify() 1020 tio->list = list; in tpc_process_verify() 1021 TAILQ_INSERT_TAIL(&list->allio, tio, links); in tpc_process_verify() 1022 tio->io = tpcl_alloc_io(); in tpc_process_verify() [all …]
|
| /freebsd-13-stable/crypto/openssh/openbsd-compat/ |
| HD | bsd-openpty.c | 204 struct termios tio; in openpty() 226 if (tcgetattr(*amaster, &tio) != -1) { in openpty() 227 tio.c_lflag |= (ECHO | ISIG | ICANON); in openpty() 228 tio.c_oflag |= (OPOST | ONLCR); in openpty() 229 tio.c_iflag |= ICRNL; in openpty() 230 tcsetattr(*amaster, TCSANOW, &tio); in openpty()
|
| /freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/read/ |
| HD | t_ttypty.c | 63 struct termios tio; in h_check() local 82 RL(tcgetattr(acurrent, &tio)); in h_check() 83 tio.c_oflag &= ~ONLCR; in h_check() 84 RL(tcsetattr(acurrent, TCSADRAIN, &tio)); in h_check()
|
| /freebsd-13-stable/usr.bin/talk/ |
| HD | init_disp.c | 128 struct termios tio; in set_edit_chars() local 130 tcgetattr(0, &tio); in set_edit_chars() 131 my_win.cerase = tio.c_cc[VERASE]; in set_edit_chars() 132 my_win.kill = tio.c_cc[VKILL]; in set_edit_chars() 133 my_win.werase = tio.c_cc[VWERASE]; in set_edit_chars()
|
| /freebsd-13-stable/libexec/comsat/ |
| HD | comsat.c | 161 struct termios tio; in notify() local 193 (void)tcgetattr(fileno(tp), &tio); in notify() 194 cr = ((tio.c_oflag & (OPOST|ONLCR)) == (OPOST|ONLCR)) ? "\n" : "\n\r"; in notify()
|
| /freebsd-13-stable/contrib/ntp/ntpd/ |
| HD | refclock_palisade.c | 306 struct termios tio; in palisade_start() local 326 if (tcgetattr(fd, &tio) < 0) { in palisade_start() 336 tio.c_cflag |= (PARENB|PARODD); in palisade_start() 337 tio.c_iflag &= ~ICRNL; in palisade_start() 356 tio.c_cflag = (CS8|CLOCAL|CREAD); in palisade_start() 365 tio.c_cflag = (CS8|CLOCAL|CREAD|PARENB|PARODD); in palisade_start() 370 tio.c_cflag = (CS8|CLOCAL|CREAD|PARENB|PARODD); in palisade_start() 379 tio.c_cflag &= ~(PARENB|PARODD); in palisade_start() 385 if (tcsetattr(fd, TCSANOW, &tio) == -1) { in palisade_start()
|
| HD | refclock_parse.c | 2988 struct termios tio; /* NEEDED FOR A LONG TIME ! */ in parse_start() local 2991 struct termio tio; /* NEEDED FOR A LONG TIME ! */ in parse_start() local 3108 if (TTY_GETATTR(fd232, &tio) == -1) in parse_start() 3117 memset((char *)tio.c_cc, 0, sizeof(tio.c_cc)); in parse_start() 3126 memset((char *)tio.c_cc, 0, sizeof(tio.c_cc)); /* best guess */ in parse_start() 3130 memset((char *)tio.c_cc, disablec, sizeof(tio.c_cc)); in parse_start() 3137 tio.c_cc[VMIN] = 1; in parse_start() 3140 tio.c_cc[VTIME] = 0; in parse_start() 3145 tio.c_cflag = (tcflag_t) parse_clockinfo[type].cl_cflag; in parse_start() 3146 tio.c_iflag = (tcflag_t) parse_clockinfo[type].cl_iflag; in parse_start() [all …]
|
| HD | refclock_ripencc.c | 471 struct termios tio; in ripencc_start() local 489 if (tcgetattr(fd, &tio) < 0) { in ripencc_start() 497 tio.c_cflag |= (PARENB|PARODD); in ripencc_start() 498 tio.c_iflag &= ~ICRNL; in ripencc_start() 499 if (tcsetattr(fd, TCSANOW, &tio) == -1) { in ripencc_start()
|
| /freebsd-13-stable/contrib/netbsd-tests/kernel/tty/ |
| HD | t_pr.c | 162 struct termios tio; in ATF_TC_BODY() local 173 rump_sys_ioctl(fd, TIOCGETA, &tio); in ATF_TC_BODY()
|
| /freebsd-13-stable/usr.sbin/sa/tests/ |
| HD | v1-i386-usr.out | 1 root 28 0.10cpu 4003tio 2887k*sec
|
| HD | v1-amd64-usr.out | 1 root 28 0.06cpu 1130tio 3514k*sec
|
| /freebsd-13-stable/usr.bin/bluetooth/rfcomm_sppd/ |
| HD | rfcomm_sppd.c | 372 struct termios tio; in sppd_ttys_open() local 374 cfmakeraw(&tio); in sppd_ttys_open() 376 if (openpty(amaster, aslave, pty, &tio, NULL) == -1) { in sppd_ttys_open()
|
| /freebsd-13-stable/usr.sbin/ppp/ |
| HD | tty.c | 482 struct termios tio; in tty_Offline() local 484 tcgetattr(p->fd, &tio); in tty_Offline() 485 if (cfsetspeed(&tio, B0) == -1 || tcsetattr(p->fd, TCSANOW, &tio) == -1) in tty_Offline()
|
| /freebsd-13-stable/sys/cam/ |
| HD | cam_ccb.h | 1353 struct ccb_termio tio; member
|