Searched defs:tty (Results 1 - 13 of 13) sorted by relevance

/osnet-11/usr/src/lib/libc/port/gen/
H A Disatty.c41 * Returns 1 iff file is a tty
46 struct termio tty; local
50 if (ioctl(f, TCGETA, &tty) < 0) {
/osnet-11/usr/src/lib/libcmd/common/
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.]"
60 register char *tty; local
84 if(!(tty=ttyname(0)))
86 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...]
/osnet-11/usr/src/lib/libc/port/stdio/
H A D_findbuf.c58 int tty = -1; local
73 else if (fd < 2 && (tty = isatty(fd))) {
100 if (!(iop->_flag & _IONBF) && ((tty != -1) ? tty : isatty(fd)))
/osnet-11/usr/src/lib/libmail/common/
H A Dnotifyu.c62 /* grab the tty name */
66 char tty[sizeof (utmpx.ut_line)+1]; local
73 tty[i] = utmpx.ut_line[i];
74 tty[i] = '\0';
77 (void) sprintf(dev, "%s/dev/%s", etcdir, tty);
79 /* break out if write() to the tty hangs */
83 /* check if device is really a tty */
91 "not a tty\n", tty);
94 "not a tty\
[all...]
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dscr_dump.c161 struct stat tty, dump; local
168 || stat(f, &dump) != 0 || stat(ctermid((char *) 0), &tty) != 0
169 || dump.st_mtime < tty.st_mtime)
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dscr_dump.c155 struct stat tty, dump; local
160 stat(f, &dump) != 0 || name == NULL || stat(name, &tty) != 0)
163 if (dump.st_mtime < tty.st_mtime)
/osnet-11/usr/src/lib/libnsl/dial/
H A Dline.c97 * tty -> terminal name
109 fixline(int tty, int spwant, int type) argument
117 DEBUG(6, "fixline(%d, ", tty);
119 if ((istermios = (*Ioctl)(tty, TCGETS, &ttbufs)) < 0) {
120 if ((*Ioctl)(tty, TCGETA, &ttbuf) != 0)
207 ASSERT((*Ioctl)(tty, TCSETAW, &ttbuf) >= 0,
210 ASSERT((*Ioctl)(tty, TCSETSW, &ttbufs) >= 0,
/osnet-11/usr/src/lib/libast/common/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
/osnet-11/usr/src/lib/pam_modules/tty_tickets/
H A Dtty_tickets.c74 char *ticketname, char *tty, time_t *timeout)
113 (void) strlcpy(tty, ptty, MAXPATHLEN);
130 char tty[MAXPATHLEN]; local
140 error = common(pamh, argc, argv, ticketname, tty, &timeout);
146 if (stat(tty, &ttysb) == -1) {
148 "pam_tty_tickets: unable to stat tty %s: %m\n", tty);
199 "pam_tty_tickets: invalid ticket %s for tty",
200 ticketname, tty);
231 char tty[MAXPATHLE local
73 common(pam_handle_t *pamh, int argc, const char **argv, char *ticketname, char *tty, time_t *timeout) argument
[all...]
/osnet-11/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c219 char *tty; local
256 (void) pam_get_item(pamh, PAM_TTY, (void **)&tty);
260 "tty = %s", user,
265 (tty == NULL) ? "NULL" : (*tty == '\0') ? "ZERO" :
266 tty);
319 if (adt_load_ttyname(tty, &termid) != 0) {
/osnet-11/usr/src/lib/libast/common/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))
/osnet-11/usr/src/lib/libshell/common/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;
[all...]

Completed in 373 milliseconds