/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | terminal.h | 73 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) argument 75 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) argument 106 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) argument 107 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) argument 125 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) argument 126 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) argument 128 # define tcgetattr(fd,tty) gtty(fd, tty) argument 129 # define tcsetattr(fd,action,tty) stty(fd, tty) argument
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | sr_clean.sh | 60 printf "${form}\n" $PROG $DEVICE > /dev/tty 67 printf "${form}\n" $PROG $DEVICE > /dev/tty 68 gettext "Please inform system administrator.\n" > /dev/tty 90 \?) printf "${USAGE}\n" $PROG >/dev/tty 125 printf "${lform}\n" $PROG $a >/dev/tty 132 printf "${lform}\n" $PROG $a >/dev/tty 139 printf "${lform}\n" $PROG $a >/dev/tty 150 printf "${lform}\n" $PROG $x >/dev/tty 157 printf "${lform}\n" $PROG $x >/dev/tty 178 printf "${lform}\n" $PROG $a >/dev/tty [all …]
|
H A D | fd_clean.sh | 60 printf "${form}\n" $PROG $DEVICE > /dev/tty 67 printf "${form}\n" $PROG $DEVICE > /dev/tty 68 gettext "Please inform system administrator.\n" > /dev/tty 128 printf "${lform}\n" $PROG $a >/dev/tty 135 printf "${lform}\n" $PROG $a >/dev/tty 142 printf "${lform}\n" $PROG $a >/dev/tty 153 printf "${lform}\n" $PROG $x >/dev/tty 160 printf "${lform}\n" $PROG $x >/dev/tty 181 printf "${lform}\n" $PROG $a >/dev/tty 188 printf "${lform}\n" $PROG $a >/dev/tty [all …]
|
H A D | st_clean.sh | 61 printf "${form}\n" $PROG $DEVICE > /dev/tty 68 printf "${form}" $PROG $DEVICE > /dev/tty 69 gettext "Please inform system administrator.\n" > /dev/tty 88 \?) printf "${USAGE}\n" $PROG >/dev/tty 168 printf "${form}\n" $DEVICE >/dev/tty 169 /usr/5bin/echo \\007 >/dev/tty
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_put.c | 997 tty = normf; in pstart() 998 tty.c_oflag &= ~(ONLCR|TAB3); in pstart() 999 tty.c_lflag &= ~ECHO; in pstart() 1034 f = tty; in ostart() 1035 tty = normf; in ostart() 1036 tty.c_iflag &= ~ICRNL; in ostart() 1037 tty.c_lflag &= ~(ECHO|ICANON); in ostart() 1038 tty.c_oflag &= ~(TAB3|ONLCR); in ostart() 1039 tty.c_cc[VMIN] = 1; in ostart() 1040 tty.c_cc[VTIME] = 1; in ostart() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | tty | 41 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 43 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 64 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 65 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 83 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) 84 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 86 # define tcgetattr(fd,tty) gtty(fd, tty) 87 # define tcsetattr(fd,action,tty) stty(fd, tty)
|
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/ |
H A D | tty | 1 /* : : generated from contrib/ast/src/lib/libast/features/tty by iffe version 2012-07-17 : : */ 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) 90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 92 # define tcgetattr(fd,tty) gtty(fd, tty) 93 # define tcsetattr(fd,action,tty) stty(fd, tty)
|
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/ |
H A D | tty | 1 /* : : generated from contrib/ast/src/lib/libast/features/tty by iffe version 2012-07-17 : : */ 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) 90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 92 # define tcgetattr(fd,tty) gtty(fd, tty) 93 # define tcsetattr(fd,action,tty) stty(fd, tty)
|
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/ |
H A D | tty | 1 /* : : generated from contrib/ast/src/lib/libast/features/tty by iffe version 2012-07-17 : : */ 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) 90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 92 # define tcgetattr(fd,tty) gtty(fd, tty) 93 # define tcsetattr(fd,action,tty) stty(fd, tty)
|
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/ |
H A D | tty | 1 /* : : generated from contrib/ast/src/lib/libast/features/tty by iffe version 2012-07-17 : : */ 47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty) 49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty) 71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty) 90 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty) 92 # define tcgetattr(fd,tty) gtty(fd, tty) 93 # define tcsetattr(fd,action,tty) stty(fd, tty)
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | comconsole.c | 125 struct console *tty; in comc_ini() local 157 tty = malloc(sizeof (*tty)); in comc_ini() 158 if (tty == NULL) { in comc_ini() 160 consoles[c] = tty; in comc_ini() 163 if (asprintf(&tty->c_name, "tty%c", 'a' + i) < 0) { in comc_ini() 164 free(tty); in comc_ini() 168 if (asprintf(&tty->c_desc, "serial port %c", 'a' + i) < 0) { in comc_ini() 169 free(tty->c_name); in comc_ini() 170 free(tty); in comc_ini() 174 tty->c_flags = 0; in comc_ini() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | line.c | 119 fixline(tty, spwant, type) in fixline() argument 120 int tty, spwant, type; in fixline() 128 DEBUG(6, "fixline(%d, ", tty); 130 if ((istermios = (*Ioctl)(tty, TCGETS, &ttbufs)) < 0) { 131 if ((*Ioctl)(tty, TCGETA, &ttbuf) != 0) { 224 ASSERT((*Ioctl)(tty, TCSETAW, &ttbuf) >= 0, 227 ASSERT((*Ioctl)(tty, TCSETSW, &ttbufs) >= 0, 395 sytfixline(tty, spwant) in sytfixline() argument 396 int tty, spwant; in sytfixline() 404 if ((istermios = (*Ioctl)(tty, TCGETS, &ttbufs)) < 0) { [all …]
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rwall.c | 67 static mutex_t tty = DEFAULTMUTEX; variable 174 (void) mutex_lock(&tty); in doall() 176 (void) mutex_unlock(&tty); in doall() 201 (void) mutex_lock(&tty); in doit() 203 (void) mutex_unlock(&tty); in doit() 222 (void) mutex_lock(&tty); in do_one() 224 (void) mutex_unlock(&tty); in do_one() 233 (void) mutex_lock(&tty); in do_one() 237 (void) mutex_unlock(&tty); in do_one() 244 (void) mutex_lock(&tty); in do_one() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | uart_backend.c | 86 struct ttyfd tty; member 167 if (sc->tty.opened) { in uart_rxfifo_getchar() 202 if (sc->tty.opened) { in rxfifo_putchar() 230 (void)ttyread(&sc->tty); in uart_rxfifo_drain() 233 ((ch = ttyread(&sc->tty)) != -1)) in uart_rxfifo_drain() 282 } else if (sc->tty.opened) { in uart_rxfifo_putchar() 283 ttywrite(&sc->tty, ch); in uart_rxfifo_putchar() 308 if (sc->tty.opened) { in uart_rxfifo_reset() 313 nread = read(sc->tty.rfd, flushbuf, sizeof(flushbuf)); in uart_rxfifo_reset() 375 sc->tty.rfd = STDIN_FILENO; in uart_stdio_backend() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | init_disp.c | 111 struct termios tty; in set_edit_chars() local 112 ioctl(0, TCGETS, (struct termios *)&tty); in set_edit_chars() 114 buf[0] = my_win.cerase = tty.c_cc[VERASE]; in set_edit_chars() 116 buf[1] = my_win.kill = tty.c_cc[VKILL]; in set_edit_chars() 117 buf[2] = my_win.werase = tty.c_cc[VWERASE]; in set_edit_chars() 120 struct sgttyb tty; in set_edit_chars() local 123 gtty(0, &tty); in set_edit_chars() 127 my_win.cerase = tty.sg_erase; in set_edit_chars() 128 my_win.kill = tty.sg_kill; in set_edit_chars()
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efiserialio.c | 125 efi_serial_setup_env(struct console *tty) in efi_serial_setup_env() argument 127 struct serial *port = tty->c_private; in efi_serial_setup_env() 132 (void) snprintf(name, sizeof (name), "%s-mode", tty->c_name); in efi_serial_setup_env() 143 tty->c_name); in efi_serial_setup_env() 151 (void) setenv(name, tty->c_name, 1); in efi_serial_setup_env() 163 tty->c_name); in efi_serial_setup_env() 166 tty->c_name, env); in efi_serial_setup_env() 180 (void) snprintf(name, sizeof (name), "%s-ignore-cd", tty->c_name); in efi_serial_setup_env() 195 (void) snprintf(name, sizeof (name), "%s-rts-dtr-off", tty->c_name); in efi_serial_setup_env() 529 efi_set_serial_name(struct console *tty) in efi_set_serial_name() argument [all …]
|
H A D | efiisaio.c | 166 efi_isa_setup_env(struct console *tty) in efi_isa_setup_env() argument 168 struct serial *port = tty->c_private; in efi_isa_setup_env() 173 (void) snprintf(name, sizeof (name), "%s-mode", tty->c_name); in efi_isa_setup_env() 184 tty->c_name); in efi_isa_setup_env() 192 (void) setenv(name, tty->c_name, 1); in efi_isa_setup_env() 204 tty->c_name); in efi_isa_setup_env() 207 tty->c_name, env); in efi_isa_setup_env() 221 (void) snprintf(name, sizeof (name), "%s-ignore-cd", tty->c_name); in efi_isa_setup_env() 236 (void) snprintf(name, sizeof (name), "%s-rts-dtr-off", tty->c_name); in efi_isa_setup_env() 513 struct console *tty; in efi_isa_ini() local [all …]
|
/illumos-gate/usr/src/lib/pam_modules/timestamp/ |
H A D | pam_timestamp.c | 179 struct stat sb, tty; in pam_sm_authenticate() local 262 if (stat(user_tty, &tty) < 0) { in pam_sm_authenticate() 283 if (info.dev != tty.st_dev || info.ino != tty.st_ino || in pam_sm_authenticate() 284 info.rdev != tty.st_rdev || info.sid != getsid(getpid()) || in pam_sm_authenticate() 285 info.uid != getuid() || info.ts.tv_sec != tty.st_ctim.tv_sec || in pam_sm_authenticate() 286 info.ts.tv_nsec != tty.st_ctim.tv_nsec) { in pam_sm_authenticate() 324 struct stat tty; in pam_sm_setcred() local 369 if (stat(user_tty, &tty) < 0) { in pam_sm_setcred() 375 info.dev = tty.st_dev; in pam_sm_setcred() 376 info.ino = tty.st_ino; in pam_sm_setcred() [all …]
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | notifyu.c | 62 char tty[sizeof (utmpx.ut_line)+1]; in notify() local 69 tty[i] = utmpx.ut_line[i]; in notify() 70 tty[i] = '\0'; in notify() 73 (void) sprintf(dev, "%s/dev/%s", etcdir, tty); in notify() 87 "not a tty\n", tty); in notify() 90 "not a tty\n", tty); in notify()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | pm_pam_conv.c | 70 struct termio tty; in getinput() local 80 (void) ioctl(fileno(stdin), TCGETA, &tty); in getinput() 81 tty_flags = tty.c_lflag; in getinput() 82 tty.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL); in getinput() 83 (void) ioctl(fileno(stdin), TCSETAF, &tty); in getinput() 98 tty.c_lflag = tty_flags; in getinput() 99 (void) ioctl(fileno(stdin), TCSETAW, &tty); in getinput()
|
/illumos-gate/usr/src/lib/libxcurses/h/posix/ |
H A D | mkslocal.h | 468 #define M_TTYGROUP "tty" /* Name of the group that owns tty's. 758 #define M_TTYNAME "/dev/tty" /* Device to open to access the controlling 1098 m_textstr(4861, "stime,tty=TTY", "I"), "atime,args",\ 1101 m_textstr(4862, "tty=TTY", "I"), "atime,args", NULL }; 1105 m_textstr(4870, "wchan,tty=TTY", "I"),\ 1107 #define M_PS_DEFFMT { m_textstr(4864, "pid,tty=TTY", "I"), "atime,comm",\
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tty.c | 61 register char* tty; in b_tty() local 88 if(!(tty=ttyname(0))) in b_tty() 90 tty = ERROR_translate(0, 0, 0, "not a tty"); in b_tty() 94 sfputr(sfstdout,tty,'\n'); in b_tty()
|
/illumos-gate/usr/src/cmd/mesg/ |
H A D | mesg.c | 56 static char *tty; variable 77 if ((tty = ttyname(i)) != NULL) in main() 81 if (stat(tty, &sbuf) < 0) in main() 156 if (chmod(tty, m) < 0) in newmode()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _findbuf.c | 62 int tty, err; in _findbuf() local 70 tty = isatty(fd); in _findbuf() 82 } else if (fd >= 0 && fd < 2 && tty != 0) { in _findbuf() 112 if (!(iop->_flag & _IONBF) && tty != 0) in _findbuf()
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_exacct.c | 45 ok(int argc, char *argv[], int index, uid_t uid, dev_t tty, char *command) in ok() argument 51 strcmp(getdev(tty), argv[j]) && in ok() 67 dev_t tty = 0; in disp_group() local 137 tty = makedev(tty_major, tty_minor); in disp_group() 143 if (argc > index && !ok(argc, argv, index, uid, tty, command)) in disp_group() 152 flagbits(flag), NMAX, getname(uid), LMAX, getdev(tty), in disp_group()
|