HomeSort by relevance Sort by last modified time
    Searched defs:tty (Results 1 - 25 of 41) sorted by null

1 2

  /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/
isatty.c 29 * Returns 1 iff file is a tty
40 struct termio tty; local
44 if(ioctl(f, TCGETA, &tty) < 0)
getttyent.c 20 struct ttyent tty; member in struct:_ttyentjunk
131 t->tty.ty_name = p;
133 t->tty.ty_getty = p;
135 t->tty.ty_type = p;
137 t->tty.ty_status = 0;
138 t->tty.ty_window = NULL;
142 t->tty.ty_status |= TTY_ON;
144 t->tty.ty_status &= ~TTY_ON;
146 t->tty.ty_status |= TTY_SECURE;
148 t->tty.ty_status |= TTY_LOCAL
    [all...]
  /onnv/onnv-gate/usr/src/lib/libc/port/gen/
isatty.c 41 * Returns 1 iff file is a tty
46 struct termio tty; local
50 if (ioctl(f, TCGETA, &tty) < 0) {
  /onnv/onnv-gate/usr/src/ucblib/libcurses/
tstp.c 38 SGTTY tty; local
43 tty = _tty;
53 _tty = tty;
  /onnv/onnv-gate/usr/src/lib/libcmd/common/
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.]"
60 register char *tty; local
80 if(!(tty=ttyname(0)))
82 tty = ERROR_translate(0, 0, 0, "not a tty");
    [all...]
stty.c 467 struct termios tty; local
478 tty = *sp;
479 sane(&tty);
499 if(tty.c_cflag&tp->mask)
505 if(tty.c_iflag&tp->mask)
511 if(tty.c_oflag&tp->mask)
517 if(tty.c_lflag&tp->mask)
535 if(!flags && off==(unsigned char)tty.c_cc[tp->mask])
555 if(flags || (sp->c_cflag&CSIZE) != (tty.c_cflag&CSIZE))
899 struct termios tty; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/avs/dscfglockd/
dscfgcli.c 41 int tty; variable
95 if (tty)
134 tty = isatty(0);
135 if (tty)
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
init_disp.c 113 struct termios tty; local
114 ioctl(0, TCGETS, (struct termios *)&tty);
116 buf[0] = my_win.cerase = tty.c_cc[VERASE];
118 buf[1] = my_win.kill = tty.c_cc[VKILL];
119 buf[2] = my_win.werase = tty.c_cc[VWERASE];
122 struct sgttyb tty; local
125 gtty(0, &tty);
129 my_win.cerase = tty.sg_erase;
130 my_win.kill = tty.sg_kill;
  /onnv/onnv-gate/usr/src/lib/libc/port/stdio/
_findbuf.c 58 int tty = -1; local
73 else if (fd < 2 && (tty = isatty(fd))) {
100 if (!(iop->_flag & _IONBF) && ((tty != -1) ? tty : isatty(fd)))
  /onnv/onnv-gate/usr/src/cmd/mesg/
mesg.c 34 * mesg -- set current tty to accept or
58 static char *tty; variable
76 * Check stdin, stdout and stderr, in order, for a tty
79 if ((tty = ttyname(i)) != NULL)
83 if (stat(tty, &sbuf) < 0)
158 if (chmod(tty, m) < 0)
  /onnv/onnv-gate/usr/src/lib/libmail/common/
notifyu.c 62 /* 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\n", tty)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libxcurses/src/libc/xcurses/
scr_dump.c 161 struct stat tty, dump; local
168 || stat(f, &dump) != 0 || stat(ctermid((char *) 0), &tty) != 0
169 || dump.st_mtime < tty.st_mtime)
  /onnv/onnv-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
scr_dump.c 155 struct stat tty, dump; local
160 stat(f, &dump) != 0 || name == NULL || stat(name, &tty) != 0)
163 if (dump.st_mtime < tty.st_mtime)
  /onnv/onnv-gate/usr/src/cmd/lastcomm/
lc_exacct.c 47 ok(int argc, char *argv[], int index, uid_t uid, dev_t tty, char *command)
53 strcmp(getdev(tty), argv[j]) &&
69 dev_t tty = 0; local
139 tty = makedev(tty_major, tty_minor);
145 if (argc > index && !ok(argc, argv, index, uid, tty, command))
154 flagbits(flag), NMAX, getname(uid), LMAX, getdev(tty),
  /onnv/onnv-gate/usr/src/cmd/power/
pm_pam_conv.c 68 struct termio tty; local
78 (void) ioctl(fileno(stdin), TCGETA, &tty); local
79 tty_flags = tty.c_lflag;
80 tty.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
81 (void) ioctl(fileno(stdin), TCSETAF, &tty); local
96 tty.c_lflag = tty_flags;
97 (void) ioctl(fileno(stdin), TCSETAW, &tty); local
  /onnv/onnv-gate/usr/src/lib/libast/common/disc/
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
  /onnv/onnv-gate/usr/src/cmd/rpcsvc/
rwall.c 69 static mutex_t tty = DEFAULTMUTEX; variable
176 (void) mutex_lock(&tty);
178 (void) mutex_unlock(&tty);
203 (void) mutex_lock(&tty);
205 (void) mutex_unlock(&tty);
224 (void) mutex_lock(&tty);
226 (void) mutex_unlock(&tty);
235 (void) mutex_lock(&tty);
239 (void) mutex_unlock(&tty);
246 (void) mutex_lock(&tty);
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ssh/include/
session.h 47 /* tty */
51 char tty[TTYSZ]; member in struct:Session
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/
in.comsat.c 285 char tty[sizeof (utmp[0].ut_line) + 5]; local
293 strcpy(tty, "/dev/");
294 strncat(tty, utp->ut_line, sizeof (utp->ut_line));
295 dsyslog(LOG_DEBUG, "notify %s on %s\n", utp->ut_name, tty);
296 if (stat(tty, &stb) == -1) {
297 dsyslog(LOG_DEBUG, "can't stat tty\n");
326 * We need to make sure that the tty listed in the utmp
327 * file really is a tty device so that a corrupted utmp
330 if ((fd = open(tty, O_RDWR)) == -1) {
331 dsyslog(LOG_DEBUG, "can't open tty");
    [all...]
  /onnv/onnv-gate/usr/src/cmd/vi/port/
ex_tty.h 70 * From the tty modes...
83 * There are several kinds of tty drivers to contend with. These include:
97 * to stty. In USG V3 it's the whole tty structure.
100 var struct termios tty; /* Use this one structure to change modes */ variable in typeref:struct:termios
101 typedef struct termios ttymode; /* Mode to contain tty flags */
104 var struct sgttyb tty; /* Always stty/gtty using this one structure */ variable in typeref:struct:sgttyb
105 typedef int ttymode; /* Mode to contain tty flags */
115 var ttymode normf; /* Restore tty flags to this (someday) */
154 var int ldisc; /* line discipline for ucb tty driver */
160 var int ttymesg; /* original mode of users tty */
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/des/
read_pwd.c 148 #define TTY_get(tty,data) tcgetattr(tty,data)
149 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data)
156 #define TTY_get(tty,data) ioctl(tty,TCGETA,data)
157 #define TTY_set(tty,data) ioctl(tty,TCSETA,data)
164 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data
279 static FILE *tty; local
    [all...]
  /onnv/onnv-gate/usr/src/lib/pam_modules/unix_cred/
unix_cred.c 162 char *tty; local
199 (void) pam_get_item(pamh, PAM_TTY, (void **)&tty);
203 "tty = %s", user,
208 (tty == NULL) ? "NULL" : (*tty == '\0') ? "ZERO" :
209 tty);
266 if (adt_load_ttyname(tty, &termid) != 0) {
  /onnv/onnv-gate/usr/src/lib/libast/common/misc/
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))
  /onnv/onnv-gate/usr/src/uts/sun4u/serengeti/io/
sgcn.c 334 tty_common_t *tty; local
352 tty = &(sgcn_state->sgcn_tty);
354 tty->t_readq = q;
355 tty->t_writeq = WR(q);
527 tty_common_t *tty; local
536 tty = &(sgcn_state->sgcn_tty);
538 if (tty->t_iocpending != NULL) {
539 freemsg(tty->t_iocpending);
540 tty->t_iocpending = NULL;
542 data_size = ttycommon_ioctl(tty, q, mp, &error)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ssh/sshd/
loginrec.c 562 if (strncmp(src, "tty", 3) == 0)
769 int tty; local
776 tty=0;
780 tty++;
787 log("utmp_write_entry: tty not found");
792 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
796 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
797 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
810 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
1060 * username on a given tty line. However, some systems (HP-UX is one
    [all...]

Completed in 6669 milliseconds

1 2