/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmterm.c | 63 struct termios termios; in set_termio() local 79 if ((term = get_ttymode(fd, &termio, &termios, &stermio, in set_termio() 88 termios.c_cc[VEOF] = CEOF; in set_termio() 89 termios.c_cc[VEOL] = CNUL; in set_termio() 91 termios.c_lflag &= ECHO; in set_termio() 92 termios.c_cc[VMIN] = 1; in set_termio() 93 termios.c_cc[VTIME] = 0; in set_termio() 107 if ((uarg = sttyparse(cnt, argvp, term, &termio, &termios, in set_termio() 115 if (set_ttymode(fd, term, &termio, &termios, &stermio, in set_termio() 209 struct termios termios; in hang_up_line() local [all …]
|
H A D | tmautobaud.c | 78 struct termios termios; in auto_termio() local 80 if (ioctl(fd, TCGETS, &termios) == -1) { in auto_termio() 101 termios.c_iflag &= 0xffff0000; in auto_termio() 102 termios.c_cflag &= ~(CSIZE|PARENB); in auto_termio() 103 termios.c_cflag |= CREAD|HUPCL|(CS8&CSIZE); in auto_termio() 104 termios.c_lflag &= ~(ISIG|ICANON|ECHO|ECHOE|ECHOK); in auto_termio() 105 termios.c_oflag &= 0xffff0000; in auto_termio() 107 termios.c_cc[VMIN] = 5; in auto_termio() 108 termios.c_cc[VTIME] = 1; in auto_termio() 109 (void) cfsetospeed(&termios, B2400); in auto_termio() [all …]
|
H A D | sttyparse.c | 60 static int parse_encoded(struct termios *, ldterm_cs_data_user_t *, int); 62 static int parse_encoded(struct termios *); 70 struct termios *cb, struct termiox *termiox, struct winsize *winsize 365 get_ttymode(int fd, struct termio *termio, struct termios *termios, argument 379 if (ioctl(fd, TCGETS, termios) == -1) { 382 termios->c_lflag = termio->c_lflag; 383 termios->c_oflag = termio->c_oflag; 384 termios->c_iflag = termio->c_iflag; 385 termios->c_cflag = termio->c_cflag; 387 termios->c_cc[i] = termio->c_cc[i]; [all …]
|
H A D | tmextern.h | 55 struct termios *, struct termiox *, struct winsize *, 58 extern int get_ttymode(int, struct termio *, struct termios *, 61 extern int set_ttymode(int, int, struct termio *, struct termios *, 66 struct termios *, struct termiox *, struct winsize *); 67 extern int get_ttymode(int, struct termio *, struct termios *, 69 extern int set_ttymode(int, int, struct termio *, struct termios *,
|
/illumos-gate/usr/src/ucbcmd/stty/ |
H A D | sttyparse.c | 52 struct termios *cb; 330 get_ttymode(fd, termio, termios, stermio, termiox, winsize) in get_ttymode() argument 333 struct termios *termios; 342 if(ioctl(fd, TCGETS, termios) == -1) { 345 termios->c_lflag = termio->c_lflag; 346 termios->c_oflag = termio->c_oflag; 347 termios->c_iflag = termio->c_iflag; 348 termios->c_cflag = termio->c_cflag; 350 termios->c_cc[i] = termio->c_cc[i]; 355 termios->c_cc[7] = (unsigned)stermio->tab; [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 1110 struct termios termios; in serial_hw_init() local 1137 if (tcgetattr (serial_fd, &termios)) in serial_hw_init() 1142 termios.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); in serial_hw_init() 1143 termios.c_oflag &= ~OPOST; in serial_hw_init() 1144 termios.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); in serial_hw_init() 1145 termios.c_cflag &= ~(CSIZE|PARENB); in serial_hw_init() 1146 termios.c_cflag |= CS8; in serial_hw_init() 1148 cfmakeraw (&termios); in serial_hw_init() 1156 cfsetispeed (&termios, termios_speed); in serial_hw_init() 1157 cfsetospeed (&termios, termios_speed); in serial_hw_init() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tty_common.c | 33 static struct termios default_termios = { 150 struct termios *cb; in ttycommon_ioctl() 152 if (miocpullup(mp, sizeof (struct termios)) != 0) { in ttycommon_ioctl() 161 cb = (struct termios *)mp->b_cont->b_rptr; in ttycommon_ioctl() 312 struct termios *cb; in ttycommon_ioctl() 315 if ((datap = allocb(sizeof (struct termios), in ttycommon_ioctl() 317 ioctlrespsize = sizeof (struct termios); in ttycommon_ioctl() 320 cb = (struct termios *)datap->b_wptr; in ttycommon_ioctl() 325 bzero(cb, sizeof (struct termios)); in ttycommon_ioctl() 327 datap->b_wptr += sizeof (struct termios); in ttycommon_ioctl() [all …]
|
H A D | ttcompat.c | 164 static void from_compat(compat_state_t *, struct termios *); 165 static void to_compat(struct termios *, compat_state_t *); 726 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 759 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 768 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 777 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 791 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 822 from_compat(&tp->t_curstate, (struct termios *)datap->b_rptr); in ttcompat_ioctl_ack() 835 to_compat((struct termios *)datap->b_rptr, &tp->t_curstate); in ttcompat_ioctl_ack() 842 from_compat(&tp->t_curstate, (struct termios *)datap->b_rptr); in ttcompat_ioctl_ack() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | setmode.c | 19 static struct termios termios_set; 20 static struct termios termios_clear; 341 struct termios termios; in setty() local 343 if ((*Ioctl)(fd, TCGETS, &termios) < 0) { in setty() 348 termios.c_iflag &= ~termios_clear.c_iflag; in setty() 349 termios.c_iflag |= termios_set.c_iflag; in setty() 350 termios.c_oflag &= ~termios_clear.c_oflag; in setty() 351 termios.c_oflag |= termios_set.c_oflag; in setty() 352 termios.c_cflag &= ~termios_clear.c_cflag; in setty() 353 termios.c_cflag |= termios_set.c_cflag; in setty() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | tty | 1 hdr termios,termio,sgtty 2 sys termios,termio,ioctl,bsdtty,nttyio,ttyio 3 lib tcgetattr,tcgetpgrp termios.h 4 mac _POSIX_VDISABLE termios.h 5 mem termios.c_line termios.h 13 # include <termios.h> 16 # include <sys/termios.h> 62 # define termios termio 78 # define termios sgttyb
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | terminal.h | 104 # define termios termio macro 120 # define termios sgttyb macro 190 extern int tty_get(int,struct termios*); 193 extern int tty_set(int, int, struct termios*); 197 extern int sh_tcgetattr(int,struct termios*); 198 extern int sh_tcsetattr(int,int,struct termios*);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | ttys | 1 hdr termios,termio,sgtty 2 sys termios,termio,ioctl,bsdtty,nttyio,filio 3 lib tcgetattr,tcgetpgrp termios.h
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | ifdef.c | 74 struct termios termios; in setupline() local 111 if ( ioctl(ttyi, TCGETS, &termios) < 0 ) { in setupline() 129 termios.c_iflag = IXON | IGNCR; in setupline() 130 termios.c_oflag = 0; in setupline() 131 termios.c_cflag = HUPCL | CREAD | CS8 | stopbits | in setupline() 132 ((line != NULL) ? baudrate : cfgetospeed(&termios)); in setupline() 133 termios.c_lflag = 0; in setupline() 134 termios.c_cc[VMIN] = termios.c_cc[VTIME] = 0; in setupline() 135 if ( ioctl(ttyi, TCSETS, &termios) == -1 ) { in setupline()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | termios.h | 88 struct termios { struct 103 extern speed_t cfgetospeed(const struct termios *); 104 extern int cfsetospeed(struct termios *, speed_t); 105 extern speed_t cfgetispeed(const struct termios *); 106 extern int cfsetispeed(struct termios *, speed_t); 107 extern int tcgetattr(int, struct termios *); 108 extern int tcsetattr(int, int, const struct termios *);
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_promio.c | 51 struct termios pio_ti; 100 struct termios *ti = arg; in pio_ctl() 107 bcopy(&pdp->pio_ti, ti, sizeof (struct termios)); in pio_ctl() 116 struct termios *ti = arg; in pio_ctl() 122 bcopy(ti, &pdp->pio_ti, sizeof (struct termios)); in pio_ctl()
|
H A D | kmdb_promif.c | 299 kmdb_prom_read(void *buf, size_t len, struct termios *tio) in kmdb_prom_read() 345 kmdb_prom_write(const void *bufp, size_t len, struct termios *tio) in kmdb_prom_write() 394 termios_setispeed(struct termios *tip, speed_t s) in termios_setispeed() 411 termios_setospeed(struct termios *tip, speed_t s) in termios_setospeed() 428 kmdb_parse_mode(const char *mode, struct termios *tip, int in) in kmdb_parse_mode() 559 bzero(&pif->pif_tios, sizeof (struct termios)); in kmdb_prom_term_init() 674 struct termios *ti = arg; in kmdb_prom_term_ctl() 675 bcopy(&mdb.m_promif->pif_tios, ti, sizeof (struct termios)); in kmdb_prom_term_ctl()
|
H A D | kmdb_promif.h | 45 extern ssize_t kmdb_prom_read(void *, size_t, struct termios *); 46 extern ssize_t kmdb_prom_write(const void *, size_t, struct termios *);
|
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/ |
H A D | tty | 5 #define _hdr_termios 1 /* #include <termios.h> ok */ 8 #define _sys_termios 1 /* #include <sys/termios.h> ok */ 19 # include <termios.h> 22 # include <sys/termios.h> 68 # define termios termio 84 # define termios sgttyb
|
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/ |
H A D | tty | 5 #define _hdr_termios 1 /* #include <termios.h> ok */ 8 #define _sys_termios 1 /* #include <sys/termios.h> ok */ 19 # include <termios.h> 22 # include <sys/termios.h> 68 # define termios termio 84 # define termios sgttyb
|
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/ |
H A D | tty | 5 #define _hdr_termios 1 /* #include <termios.h> ok */ 8 #define _sys_termios 1 /* #include <sys/termios.h> ok */ 19 # include <termios.h> 22 # include <sys/termios.h> 68 # define termios termio 84 # define termios sgttyb
|
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/ |
H A D | tty | 5 #define _hdr_termios 1 /* #include <termios.h> ok */ 8 #define _sys_termios 1 /* #include <sys/termios.h> ok */ 19 # include <termios.h> 22 # include <sys/termios.h> 68 # define termios termio 84 # define termios sgttyb
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wgetch.c | 51 static struct termios read_termios; 157 struct termios 160 struct termios rval; in __m_tty_override_mode() 161 struct termios newstuff; in __m_tty_override_mode() 240 struct termios save; in pollTypeahead() 341 struct termios save; in wgetch()
|
H A D | setup.c | 318 cur_term->_shell = (void *) calloc(1, sizeof (struct termios)); in __m_setupterm() 319 cur_term->_prog = (void *) calloc(1, sizeof (struct termios)); in __m_setupterm() 320 cur_term->_save = (void *) calloc(1, sizeof (struct termios)); in __m_setupterm() 321 cur_term->_actual = (void *) calloc(1, sizeof (struct termios)); in __m_setupterm() 581 __m_tty_get(struct termios *tp) in __m_tty_get() 605 __m_tty_set(struct termios *tp) in __m_tty_set() 617 if (memcmp(tp, &cur_term->_actual, sizeof (struct termios)) == 0) in __m_tty_set()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | prompter.c | 24 static krb5_error_code setup_tty(FILE*, int, struct termios *, osiginfo *); 25 static krb5_error_code restore_tty(FILE*, struct termios *, osiginfo *); 42 struct termios saveparm; in krb5_prompter_posix() 155 setup_tty(FILE *fp, int hidden, struct termios *saveparm, osiginfo *osigint) in setup_tty() 159 struct termios tparm; in setup_tty() 188 restore_tty(FILE* fp, struct termios *saveparm, osiginfo *osigint) in restore_tty()
|
/illumos-gate/usr/src/compat/bhyve/ |
H A D | termios.h | 19 #include_next <termios.h> 21 void cfmakeraw(struct termios *);
|