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

12

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Disatty.c29 * Returns 1 iff file is a tty
40 struct termio tty; local
44 if(ioctl(f, TCGETA, &tty) < 0)
H A Dgetttyent.c20 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
[all...]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dtstp.c38 SGTTY tty; local
43 tty = _tty;
53 _tty = tty;
/illumos-gate/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) {
/illumos-gate/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)))
/illumos-gate/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
80 if(!(tty=ttyname(0)))
82 tty = ERROR_translate(0, 0, 0, "not a tty");
[all...]
H A Dstty.c467 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...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dinit_disp.c113 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;
/illumos-gate/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)
/illumos-gate/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)
/illumos-gate/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...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dprocess.c69 static int find_user(char *name, char *tty);
182 find_user(char *name, char *tty) argument
196 * Check if this entry is really a tty.
206 syslog(LOG_CRIT, "%.*s in utmp is not a tty\n",
211 if (*tty == '\0') {
213 * No particular tty was requested.
222 (void) strlcpy(tty, ubuf->ut_line, TTY_SIZE);
227 if (strcmp(ubuf->ut_line, tty) == 0) {
/illumos-gate/usr/src/cmd/mesg/
H A Dmesg.c34 * 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)
/illumos-gate/usr/src/cmd/avs/dscfglockd/
H A Ddscfgcli.c41 int tty; variable
95 if (tty)
134 tty = isatty(0);
135 if (tty)
/illumos-gate/usr/src/cmd/power/
H A Dpm_pam_conv.c68 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
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlc_exacct.c47 ok(int argc, char *argv[], int index, uid_t uid, dev_t tty, char *command) argument
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),
/illumos-gate/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c36 dev_t dev; /* ID of device tty resides on */
37 dev_t rdev; /* tty device ID */
38 ino_t ino; /* tty inode number */
41 pid_t sid; /* session ID associated with tty/ppid */
42 timestruc_t ts; /* time of tty last status change */
57 /* get user, auser and users's tty */
82 "user = %s, auser = %s, tty = %s", user, auser, ttyn);
90 "invalid tty: %s", ttyn);
186 struct stat sb, tty; local
269 if (stat(user_tty, &tty) <
336 struct stat tty; local
[all...]
/illumos-gate/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,
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drwall.c69 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...]
/illumos-gate/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
/illumos-gate/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c182 char *tty; local
218 (void) pam_get_item(pamh, PAM_TTY, (void **)&tty);
222 "tty = %s", user,
227 (tty == NULL) ? "NULL" : (*tty == '\0') ? "ZERO" :
228 tty);
285 if (adt_load_ttyname(tty, &termid) != 0) {
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_tty.h70 * 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...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c285 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...]
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc1.c162 getname(uid_t uid, dev_t tty, time_t start) argument
166 if ((p = getnamc(uid, tty, start)) != NULL)
242 * must match on tty; use start time to help guess
244 * srecs for those having same tty
250 getnamc(uid_t uid, dev_t tty, time_t start) argument
265 if (tty == sp->sr_tty) {
/illumos-gate/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))

Completed in 122 milliseconds

12