/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmterm.c | 62 struct termio termio; in set_termio() local 79 if ((term = get_ttymode(fd, &termio, &termios, &stermio, 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() 131 struct termio termio; in turnon_canon() local 136 if (ioctl(fd, TCGETA, &termio) != 0) { in turnon_canon() 141 termio.c_lflag |= (ISIG|ICANON|ECHO|ECHOE|ECHOK); in turnon_canon() 142 termio.c_cc[VEOF] = CEOF; in turnon_canon() 143 termio.c_cc[VEOL] = CNUL; in turnon_canon() 144 if (ioctl(fd, TCSETA, &termio) != 0) { in turnon_canon() [all …]
|
H A D | tmautobaud.c | 77 struct termio termio; in auto_termio() local 81 if (ioctl(fd, TCGETA, &termio) == -1) { in auto_termio() 86 termio.c_iflag = 0; in auto_termio() 87 termio.c_cflag &= ~(CBAUD|CSIZE|PARENB); in auto_termio() 88 termio.c_cflag |= CREAD|HUPCL|(CS8&CSIZE)|(B2400&CBAUD); in auto_termio() 89 termio.c_lflag &= ~(ISIG|ICANON|ECHO|ECHOE|ECHOK); in auto_termio() 90 termio.c_oflag = 0; in auto_termio() 92 termio.c_cc[VMIN] = 5; in auto_termio() 93 termio.c_cc[VTIME] = 1; in auto_termio() 95 if (ioctl(fd, TCSETAF, &termio) == -1) { in auto_termio()
|
H A D | tmextern.h | 54 extern char *sttyparse(int, char *[], int, struct termio *, 58 extern int get_ttymode(int, struct termio *, struct termios *, 61 extern int set_ttymode(int, int, struct termio *, struct termios *, 65 extern char *sttyparse(int, char *[], int, struct termio *, 67 extern int get_ttymode(int, struct termio *, struct termios *, 69 extern int set_ttymode(int, int, struct termio *, struct termios *,
|
H A D | sttyparse.c | 69 sttyparse(int argc, char *argv[], int term, struct termio *ocb, 365 get_ttymode(int fd, struct termio *termio, struct termios *termios, argument 380 if (ioctl(fd, TCGETA, termio) == -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]; 426 set_ttymode(int fd, int term, struct termio *termio, struct termios *termios, argument 445 termio->c_lflag = termios->c_lflag; [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | ifdef.c | 73 struct termio termio; in setupline() local 112 if ( ioctl(ttyi, TCGETA, &termio) == -1 ) { in setupline() 117 termio.c_iflag = IXON | IGNCR; in setupline() 118 termio.c_oflag = 0; in setupline() 119 termio.c_cflag = HUPCL | CREAD | CS8 | stopbits | in setupline() 120 ((line != NULL) ? baudrate : (termio.c_cflag & CBAUD)); in setupline() 121 termio.c_lflag = 0; in setupline() 122 termio.c_cc[VMIN] = termio.c_cc[VTIME] = 0; in setupline() 123 if ( ioctl(ttyi, TCSETA, &termio) == -1 ) { in setupline() 161 struct termio termio; /* so we can reset flow control */ in resetline() local [all …]
|
/illumos-gate/usr/src/ucbcmd/stty/ |
H A D | sttyparse.c | 51 struct termio *ocb; 330 get_ttymode(fd, termio, termios, stermio, termiox, winsize) in get_ttymode() argument 332 struct termio *termio; 343 if(ioctl(fd, TCGETA, termio) == -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]; 371 set_ttymode(fd, term, termio, termios, stermio, termiox, winsize, owinsize) in set_ttymode() argument [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_put.c | 1183 static struct termio termio; variable 1193 if(ioctl(i, TCGETA, &termio) < 0) in gTTY() 1195 tty.c_iflag = termio.c_iflag; in gTTY() 1196 tty.c_oflag = termio.c_oflag; in gTTY() 1197 tty.c_cflag = termio.c_cflag; in gTTY() 1198 tty.c_lflag = termio.c_lflag; in gTTY() 1200 tty.c_cc[i] = termio.c_cc[i]; in gTTY() 1206 if(ioctl(i, TCGETA, &termio) < 0) in gTTY() 1208 tty.c_iflag = termio.c_iflag; in gTTY() 1209 tty.c_oflag = termio.c_oflag; in gTTY() [all …]
|
H A D | exrecover.c | 274 struct termio termio; local 280 ioctl(2, TCGETA, &termio); 281 if (termio.c_lflag & ICANON) 838 struct termio ttyb;
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tty_common.c | 182 struct termio *cb; in ttycommon_ioctl() 184 if (miocpullup(mp, sizeof (struct termio)) != 0) { in ttycommon_ioctl() 193 cb = (struct termio *)mp->b_cont->b_rptr; in ttycommon_ioctl() 336 struct termio *cb; in ttycommon_ioctl() 339 if ((datap = allocb(sizeof (struct termio), BPRI_HI)) == NULL) { in ttycommon_ioctl() 340 ioctlrespsize = sizeof (struct termio); in ttycommon_ioctl() 344 cb = (struct termio *)datap->b_wptr; in ttycommon_ioctl() 349 bzero(cb, sizeof (struct termio)); in ttycommon_ioctl() 351 datap->b_wptr += sizeof (struct termio); in ttycommon_ioctl() 352 iocp->ioc_count = sizeof (struct termio); in ttycommon_ioctl()
|
H A D | ptem.c | 613 struct termio *termiop; in ptemwmsg() 655 error = miocpullup(mp, sizeof (struct termio)); in ptemwmsg() 660 cflags = ((struct termio *) in ptemwmsg() 714 dp = allocb(sizeof (struct termio), BPRI_MED); in ptemwmsg() 719 termiop = (struct termio *)dp->b_rptr; in ptemwmsg() 721 mioc2ack(mp, dp, sizeof (struct termio), 0); in ptemwmsg()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ct.c | 149 struct termio termio; local 347 (void) ioctl (0, TCGETA, &termio); 348 termio.c_cflag = 0; /* speed to zero for hangup */ 349 (void) ioctl (0, TCSETAW, &termio); /* hang up terminal */ 498 struct termio termio; in disconnect() local 507 (void) ioctl (fileno(_Fdl), TCGETA, &termio); in disconnect() 508 termio.c_cflag = 0; /* speed to zero for hangup */ in disconnect() 509 (void) ioctl (fileno(_Fdl), TCSETAW, &termio); /* hang up terminal */ in disconnect()
|
H A D | line.c | 103 static struct termio Savettyb; 123 struct termio ttbuf; 236 struct termio ttbuf; 264 static struct termio tbuf; 398 struct termio ttbuf; 446 struct termio ttbuf;
|
/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 54 # include <termio.h> 57 # include <sys/termio.h> 62 # define termios termio
|
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/ |
H A D | tty | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */ 60 # include <termio.h> 63 # include <sys/termio.h> 68 # define termios termio
|
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/ |
H A D | tty | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */ 60 # include <termio.h> 63 # include <sys/termio.h> 68 # define termios termio
|
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/ |
H A D | tty | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */ 60 # include <termio.h> 63 # include <sys/termio.h> 68 # define termios termio
|
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/ |
H A D | tty | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */ 60 # include <termio.h> 63 # include <sys/termio.h> 68 # define termios termio
|
/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
|
/illumos-gate/usr/src/cmd/format/ |
H A D | io.c | 2386 struct termio termio; in execute_shell() local 2413 if (ioctl(0, TCGETA, &termio) == 0) { in execute_shell() 2415 tty.c_iflag = termio.c_iflag; in execute_shell() 2416 tty.c_oflag = termio.c_oflag; in execute_shell() 2417 tty.c_cflag = termio.c_cflag; in execute_shell() 2418 tty.c_lflag = termio.c_lflag; in execute_shell() 2420 tty.c_cc[i] = termio.c_cc[i]; in execute_shell() 2449 termio.c_iflag = tty.c_iflag; in execute_shell() 2450 termio.c_oflag = tty.c_oflag; in execute_shell() 2451 termio.c_cflag = tty.c_cflag; in execute_shell() [all …]
|
/illumos-gate/usr/src/cmd/ast/libshell/amd64/FEATURE/ |
H A D | ttys | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libshell/i386/FEATURE/ |
H A D | ttys | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libshell/sparc/FEATURE/ |
H A D | ttys | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libshell/sparcv9/FEATURE/ |
H A D | ttys | 6 #define _hdr_termio 1 /* #include <termio.h> ok */ 9 #define _sys_termio 1 /* #include <sys/termio.h> ok */
|
/illumos-gate/usr/src/cmd/streams/strcmd/ |
H A D | strchg.c | 126 struct termio termio; /* save state of tty */ in main() local 271 if (ioctl(STDIN, TCGETA, &termio) >= 0) in main() 378 ioctl(STDIN, TCSETA, &termio) < 0) { in main()
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | line.c | 89 static struct termio Savettyb; 108 struct termio ttbuf; in fixline() 214 struct termio ttbuf; in sethup()
|