Searched refs:tty (Results 1 - 25 of 30) sorted by relevance

12

/ast/src/cmd/std/
H A Dmesg.c58 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 Dpss.c139 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 Dpss-cygwin.c116 pe->tty = pr->ctty == PRNODEV ? PSS_NODEV : pr->ctty;
175 if (pe->tty < 0)
177 if (pe->tty == (Pss_dev_t)TTY_CONSOLE)
179 sfsprintf(pss->buf, sizeof(pss->buf), "%I*d", sizeof(pe->tty), pe->tty);
H A Dpss.h41 #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
H A Dpss-kvm.c47 #include <sys/tty.h>
184 pe->tty = state->px->e_tdev;
H A Dpss-getprocs.c126 pe->tty = pr->pi_ttyp ? pr->pi_ttyd : PSS_NODEV;
H A Dpss-pstat.c107 pe->tty = pr->pst_term.psd_major == -1 && pr->pst_term.psd_minor == -1 ? PSS_NODEV : makedev(pr->pst_term.psd_major, pr->pst_term.psd_minor);
H A Dshar.sh80 [t:tty?Write errors and the name of each file to \b/dev/tty\b as it is
147 t) verbose=1; exec 2> /dev/tty;;
269 then exec < /dev/tty
/ast/src/cmd/ie/
H A Dterminal.h53 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
54 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
88 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
89 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
118 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
[all...]
H A Dedit.c115 static struct termios ttyparm; /* initial tty parameters */
116 static struct termios nttyparm; /* raw tty parameters */
143 int tty_get(fd, tty)
145 struct termios *tty;
169 if(tty)
170 *tty = savetty;
180 int tty_set(fd, action, tty)
182 struct termios *tty;
190 if(savefd>=0 && compare(&savetty,tty,sizeof(struct termios)))
196 while(tcsetattr(fd, action, tty)
[all...]
/ast/src/lib/libcodex/
H A Dcodexgetpass.c43 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/cmd/mailx/
H A Dtty.c78 * 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...]
H A DMakefile9 names.c proc.c quit.c send.c spam.c tty.c vars.c \
/ast/src/lib/libcmd/
H A Dtty.c26 * 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 Dstty.c469 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...]
H A DMakefile26 rmdir.c stty.c sum.c sync.c tail.c tee.c tty.c uname.c uniq.c \
/ast/src/cmd/ksh93/include/
H A Dterminal.h73 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
75 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
106 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
107 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
125 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
[all...]
/ast/src/lib/libtksh/src/
H A DtclMain.c16 int code, tty; local
51 tty = isatty(0);
53 ((fileName == NULL) && tty) ? "1" : "0", TCL_GLOBAL_ONLY);
/ast/src/lib/libtk/generic/
H A DtkMain.c56 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/cmd/tksh/
H A DtkMain.c58 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/disc/
H A Dsfdcmore.c97 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/ksh93/edit/
H A Dedit.c164 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...]
H A Dhistory.c54 char *tty; \
398 hp->tty = strdup(ttyname(2));
417 if(hp->tty)
418 free((void*)hp->tty);
837 sfprintf(hp->auditfp,"%u;%u;%s;%*s%c",sh_isoption(SH_PRIVILEGED)?shgd->euserid:shgd->userid,t,hp->tty,size,buff,0);
/ast/src/lib/libast/misc/
H A Derror.c87 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/ksh93/tests/
H A Dbracket.sh295 if ( : < /dev/tty ) 2>/dev/null && exec {n}< /dev/tty

Completed in 54 milliseconds

12