/ast/src/lib/libcmd/ |
H A D | tty.c | 26 * tty 30 "[-?\n@(#)$Id: tty (AT&T Research) 2008-03-13 $\n]" 32 "[+NAME?tty - write the name of the terminal to standard output]" 35 "a terminal, \"\bnot a tty\b\" will be written to standard output.]" 42 "[+0?Standard input is a tty.]" 43 "[+1?Standard input is not a tty.]" 61 register char* tty; local 88 if(!(tty=ttyname(0))) 90 tty = ERROR_translate(0, 0, 0, "not a tty"); [all...] |
H A D | stty.c | 469 struct termios tty; local 480 tty = *sp; 481 sane(&tty); 501 if(tty.c_cflag&tp->mask) 507 if(tty.c_iflag&tp->mask) 513 if(tty.c_oflag&tp->mask) 519 if(tty.c_lflag&tp->mask) 537 if(!flags && off==(unsigned char)tty.c_cc[tp->mask]) 557 if(flags || (sp->c_cflag&CSIZE) != (tty.c_cflag&CSIZE)) 901 struct termios tty; local [all...] |
/ast/src/cmd/std/ |
H A D | mesg.c | 58 char *tty = ttyname(2); local 59 if(!tty) 60 tty = ttyname(0); 61 if(!tty) 62 tty = ttyname(1); 63 if(!tty) 65 if(stat(tty,&statb)<0) 66 error(ERROR_system(1),"%s: cannot stat",tty); 75 if(chmod(tty, statb.st_mode) < 0) 76 error(ERROR_system(1),"%s: cannot stat",tty); [all...] |
H A D | pss.c | 139 if ((flags & PSS_TTY) && pe->tty != TTYMAP(pss, pss->disc->tty)) 146 if (pe->tty == PSS_NODEV) 150 if (pe->tty != PSS_NODEV) 190 x = pe->tty; 255 * add name,dev to the tty hash 261 register Tty_t* tty; local 265 if (!(tty = vmnewof(pss->vm, 0, Tty_t, 1, strlen(name)))) 271 strcpy(tty->name, name); 272 tty 357 register Tty_t* tty; local 392 register Tty_t* tty; local [all...] |
H A D | pss.h | 41 #define PSS_TTY (1<<6) /* match disc.tty */ 110 Pss_dev_t tty; member in struct:Pssent_s 159 Pss_dev_t tty; /* PSS_TTY match value */ member in struct:Pssdisc_s
|
/ast/src/lib/libcodex/ |
H A D | codexgetpass.c | 43 struct termios tty; local 45 if (rp = sfopen(NiL, "/dev/tty", "r+")) 53 tcgetattr(sffileno(rp), &tty); local 54 flags = tty.c_lflag; 55 tty.c_lflag &= ~(ECHO|ECHONL); 56 tcsetattr(sffileno(rp), TCSANOW, &tty); local 57 tty.c_lflag = flags; 69 tcsetattr(sffileno(rp), TCSANOW, &tty); local
|
/ast/src/lib/libtksh/src/ |
H A D | tclMain.c | 16 int code, tty; local 51 tty = isatty(0); 53 ((fileName == NULL) && tty) ? "1" : "0", TCL_GLOBAL_ONLY);
|
/ast/src/lib/libtk/generic/ |
H A D | tkMain.c | 56 static int tty; /* Non-zero means standard input is a variable 150 * always claim to be running on a tty. This probably isn't the right 155 tty = 1; 157 tty = isatty(0); 160 ((fileName == NULL) && tty) ? "1" : "0", TCL_GLOBAL_ONLY); 185 tty = 0; 203 if (tty) { 278 if (tty) { 313 if ((code != TCL_OK) || (tty)) { 330 if (tty) { [all...] |
/ast/src/lib/libast/disc/ |
H A D | sfdcmore.c | 97 struct termios tty; local 106 tty = old; 107 tty.c_cc[VTIME] = 0; 108 tty.c_cc[VMIN] = 1; 109 tty.c_lflag &= ~(ICANON|ECHO|ECHOK|ISIG); 110 tcsetattr(rfd, TCSADRAIN, &tty); 298 * if rows==0 or cols==0 then they are deterimined from the tty
|
/ast/src/cmd/mailx/ |
H A D | tty.c | 78 * tty stuff swiped from ksh 122 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 124 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 155 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 156 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 174 # define tcgetattr(fd,tty) ioct 237 struct termios tty; local 283 struct termios tty; local [all...] |
/ast/src/cmd/tksh/ |
H A D | tkMain.c | 58 static int tty; /* Non-zero means standard input is a variable 155 * always claim to be running on a tty. This probably isn't the right 160 tty = 1; 162 tty = isatty(0); 165 ((fileName == NULL) && tty) ? "1" : "0", TCL_GLOBAL_ONLY); 192 tty = 0; 247 if (tty) { 330 if (tty) { 365 if ((code != TCL_OK) || (tty)) { 382 if (tty) { [all...] |
/ast/src/lib/libast/misc/ |
H A D | error.c | 87 Sfio_t* tty; member in struct:State_s 332 if (error_state.tty || (error_state.tty = sfopen(NiL, "/dev/tty", "r+"))) 334 sfprintf(error_state.tty, "error breakpoint: "); 335 if (s = sfgetr(error_state.tty, '\n', 1))
|
/ast/src/cmd/builtin/ |
H A D | pty.c | 84 "[T:tty?Pass \astty\a to the \bstty\b(1) command to initialize the " 209 struct termios tty; local 225 if (tcgetattr(STDERR_FILENO, &tty) >= 0) 226 ttyp = &tty;
|
/ast/src/cmd/ksh93/edit/ |
H A D | edit.c | 164 struct termios tty; local 166 return(tty_get(fd,&tty)==0); 175 int tty_get(register int fd, register struct termios *tty) argument 179 *tty = ep->e_savetty; 182 while(tcgetattr(fd,tty) == SYSERR) 191 ep->e_savetty = *tty; 203 int tty_set(int fd, int action, struct termios *tty) argument 209 if(ep->e_savefd>=0 && compare(&ep->e_savetty,tty,sizeof(struct termios))) 212 while(tcsetattr(fd, action, tty) == SYSERR) 218 ep->e_savetty = *tty; 1854 sh_tcgetattr(int fd, struct termios *tty) argument 1863 sh_tcsetattr(int fd, int cmd, struct termios *tty) argument [all...] |