/freebsd-10.0-release/sys/sys/ |
H A D | ttydisc.h | 36 #error "can only be included through <sys/tty.h>" 41 struct tty; 45 void ttydisc_open(struct tty *tp); 46 void ttydisc_close(struct tty *tp); 47 int ttydisc_read(struct tty *tp, struct uio *uio, int ioflag); 48 int ttydisc_write(struct tty *tp, struct uio *uio, int ioflag); 49 void ttydisc_optimize(struct tty *tp); 52 void ttydisc_modem(struct tty *tp, int open); 54 int ttydisc_rint(struct tty *tp, char c, int flags); 55 size_t ttydisc_rint_simple(struct tty *t [all...] |
H A D | ttyhook.h | 33 #error "can only be included through <sys/tty.h>" 36 struct tty; 43 typedef int th_rint_t(struct tty *tp, char c, int flags); 44 typedef size_t th_rint_bypass_t(struct tty *tp, const void *buf, size_t len); 45 typedef void th_rint_done_t(struct tty *tp); 46 typedef size_t th_rint_poll_t(struct tty *tp); 48 typedef size_t th_getc_inject_t(struct tty *tp, void *buf, size_t len); 49 typedef void th_getc_capture_t(struct tty *tp, const void *buf, size_t len); 50 typedef size_t th_getc_poll_t(struct tty *tp); 52 typedef void th_close_t(struct tty *t [all...] |
H A D | ttydevsw.h | 36 #error "can only be included through <sys/tty.h>" 43 typedef int tsw_open_t(struct tty *tp); 44 typedef void tsw_close_t(struct tty *tp); 45 typedef void tsw_outwakeup_t(struct tty *tp); 46 typedef void tsw_inwakeup_t(struct tty *tp); 47 typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, 49 typedef int tsw_cioctl_t(struct tty *tp, int unit, u_long cmd, caddr_t data, 51 typedef int tsw_param_t(struct tty *tp, struct termios *t); 52 typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff); 53 typedef int tsw_mmap_t(struct tty *t [all...] |
H A D | tty.h | 61 struct tty { struct 64 TAILQ_ENTRY(tty) t_list; /* (l) TTY list entry. */ 67 #define TF_NOPREFIX 0x00001 /* Don't prepend "tty" to device name. */ 70 #define TF_OPENED_IN 0x00008 /* "tty" node is in use. */ 116 struct termios t_termios_init_in; /* tty%s.init. */ 117 struct termios t_termios_lock_in; /* tty%s.lock. */ 135 * Userland version of struct tty, for sysctl kern.ttys 161 struct tty *tty_alloc(struct ttydevsw *tsw, void *softc); 162 struct tty *tty_alloc_mutex(struct ttydevsw *tsw, void *softc, struct mtx *mtx); 163 void tty_rel_pgrp(struct tty *t [all...] |
/freebsd-10.0-release/crypto/heimdal/appl/login/ |
H A D | tty.c | 39 * Clean the tty name. Return a pointer to the cleaned version. 43 clean_ttyname (char *tty) argument 45 char *res = tty; 57 * Generate a name usable as an `ut_id', typically without `tty'. 61 make_id (char *tty) argument 63 char *res = tty; 67 if (strncmp (res, "tty", 3) == 0)
|
H A D | read_string.c | 56 FILE *tty; local 76 if((tty = fopen("/dev/tty", "r")) == NULL) 77 tty = stdin; 83 tcgetattr(fileno(tty), &t_old); 86 tcsetattr(fileno(tty), TCSANOW, &t_new); 91 c = getc(tty); 93 if(!ferror(tty)) 109 tcsetattr(fileno(tty), TCSANOW, &t_old); 112 if(tty ! [all...] |
/freebsd-10.0-release/tools/regression/usr.bin/pkill/ |
H A D | pgrep-t.t | 8 name="pgrep -t <tty>" 9 tty=`ps -o tty -p $$ | tail -1` 10 if [ "$tty" = "??" ]; then 11 tty="-" 14 case $tty in 15 pts/*) ttyshort=`echo $tty | cut -c 5-` ;; 16 *) ttyshort=`echo $tty | cut -c 4-` ;; 24 pid=`pgrep -f -t $tty $sleep`
|
H A D | pkill-t.t | 8 name="pkill -t <tty>" 9 tty=`ps -o tty -p $$ | tail -1` 10 if [ "$tty" = "??" ]; then 11 tty="-" 14 case $tty in 15 pts/*) ttyshort=`echo $tty | cut -c 5-` ;; 16 *) ttyshort=`echo $tty | cut -c 4-` ;; 23 pkill -f -t $tty $sleep
|
/freebsd-10.0-release/usr.bin/tty/ |
H A D | Makefile | 4 PROG= tty
|
/freebsd-10.0-release/lib/libc/gen/ |
H A D | getttyent.c | 53 getttynam(const char *tty) argument 57 if (strncmp(tty, "/dev/", 5) == 0) 58 tty += 5; 61 if (!strcmp(tty, t->ty_name)) 70 static struct ttyent tty; local 102 tty.ty_name = p; 103 tty.ty_status = 0; 104 tty.ty_window = NULL; 105 tty.ty_group = _TTYS_NOGROUP; 108 if (!*(tty 237 isttystat(const char *tty, int flag) argument 246 isdialuptty(const char *tty) argument 253 isnettty(const char *tty) argument [all...] |
/freebsd-10.0-release/usr.bin/write/ |
H A D | Makefile | 6 BINGRP= tty
|
/freebsd-10.0-release/usr.bin/mesg/ |
H A D | mesg.c | 68 char *tty; local 80 if ((tty = ttyname(STDIN_FILENO)) == NULL && 81 (tty = ttyname(STDOUT_FILENO)) == NULL && 82 (tty = ttyname(STDERR_FILENO)) == NULL) 84 if (stat(tty, &sb) < 0) 85 err(2, "%s", tty); 98 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) 99 err(2, "%s", tty); 102 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) 103 err(2, "%s", tty); [all...] |
/freebsd-10.0-release/contrib/less/ |
H A D | ttyin.c | 26 public int tty; variable 42 tty = (int) CreateFile("CONIN$", GENERIC_READ, 45 GetConsoleMode((HANDLE)tty, &console_mode); 47 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT); 57 tty = open("CON", OPEN_READ); 67 * Try /dev/tty. 73 /* The __open() system call translates "/dev/tty" to "con". */ 74 tty = __open("/dev/tty", OPEN_READ); 76 tty [all...] |
/freebsd-10.0-release/usr.bin/wall/ |
H A D | Makefile | 6 BINGRP= tty
|
/freebsd-10.0-release/lib/libpam/modules/pam_securetty/ |
H A D | pam_securetty.c | 61 const void *tty; local 76 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 80 PAM_LOG("Got TTY: %s", (const char *)tty); 83 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) { 85 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1; 88 if (tty != NULL && (ty = getttynam(tty)) != NULL &&
|
/freebsd-10.0-release/etc/rc.d/ |
H A D | serial | 53 comcontrol /dev/tty${dc}${i} dtrwait 300 drainwait $drainwait 54 stty < /dev/tty${dc}${i}.init -clocal crtscts hupcl 9600 reprint ^R 55 stty < /dev/tty${dc}${i}.lock -clocal -crtscts -hupcl 0 69 stty < /dev/tty${dc}${i}.init reprint undef 72 stty < /dev/tty${dc}${i}.lock clocal 75 stty < /dev/tty${dc}${i}.lock 300 88 comcontrol /dev/tty${dc}${i} dtrwait 100 drainwait 180 91 stty < /dev/tty${dc}${i}.init crtscts 115200 92 stty < /dev/tty${dc}${i}.lock crtscts 107 stty < /dev/tty [all...] |
/freebsd-10.0-release/usr.sbin/pkg_install/lib/ |
H A D | msg.c | 45 FILE *tty; local 49 * Need to open /dev/tty because file collection may have been 52 tty = fopen(_PATH_TTY, "r"); 53 if (!tty) { 69 ch = toupper(fgetc(tty)); 73 fclose(tty) ;
|
/freebsd-10.0-release/crypto/openssl/crypto/des/ |
H A D | 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,TIOCGET 279 static FILE *tty; local 479 noecho_fgets(char *buf, int size, FILE *tty) argument [all...] |
/freebsd-10.0-release/gnu/usr.bin/groff/src/devices/grotty/ |
H A D | Makefile | 4 SRCS= tty.cpp
|
/freebsd-10.0-release/contrib/libreadline/ |
H A D | rltty.c | 142 to get the tty settings. */ 144 set_winsize (tty) 145 int tty; 150 if (ioctl (tty, TIOCGWINSZ, &w) == 0) 151 (void) ioctl (tty, TIOCSWINSZ, &w); 168 struct sgttyb sgttyb; /* Basic BSD tty driver information. */ 230 get_tty_settings (tty, tiop) 231 int tty; 234 set_winsize (tty); 239 if (ioctl (tty, TIOCGET 659 int tty; local 732 int tty; local 935 int tty; local [all...] |
/freebsd-10.0-release/crypto/openssh/ |
H A D | sshpty.c | 6 * Allocating a pseudo-terminal, and making it the controlling tty. 59 * descriptors for the pty and tty sides and the name of the tty side are 83 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */ 86 pty_release(const char *tty) argument 89 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) 90 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); 91 if (chmod(tty, (mode_t) 0666) < 0) 92 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); 96 /* Makes the tty th 99 pty_make_controlling_tty(int *ttyfd, const char *tty) argument 203 pty_setowner(struct passwd *pw, const char *tty) argument [all...] |
/freebsd-10.0-release/lib/libpam/modules/pam_login_access/ |
H A D | pam_login_access.c | 59 const void *rhost, *tty, *user; local 76 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 83 PAM_LOG("Checking login.access for user %s on tty %s", 84 (const char *)user, (const char *)tty); 85 if (login_access(user, tty) != 0) 88 user, tty);
|
/freebsd-10.0-release/contrib/ncurses/ncurses/trace/ |
H A D | lib_tracebits.c | 103 _nc_trace_ttymode(TTY * tty) argument 170 if (tty->c_iflag & ALLIN) 171 lookup_bits(buf, iflags, "iflags", tty->c_iflag); 173 if (tty->c_oflag & ALLOUT) 174 lookup_bits(buf, oflags, "oflags", tty->c_oflag); 176 if (tty->c_cflag & ALLCTRL) 177 lookup_bits(buf, cflags, "cflags", tty->c_cflag); 196 int value = (tty->c_cflag & CSIZE); 211 if (tty->c_lflag & ALLLOCAL) 212 lookup_bits(buf, lflags, "lflags", tty [all...] |
/freebsd-10.0-release/usr.bin/bluetooth/rfcomm_sppd/ |
H A D | rfcomm_sppd.c | 61 static int sppd_ttys_open (char const *tty, int *amaster, int *aslave); 79 char *tty = NULL, *ep = NULL, buf[SPPD_BUFFER_SIZE]; local 135 asprintf(&tty, "%s%s", _PATH_DEV, optarg); 137 tty = optarg; 176 if (tty == NULL) { 183 if (sppd_ttys_open(tty, &amaster, &aslave) < 0) 288 syslog(LOG_INFO, "Starting on %s...", (tty != NULL)? tty : "stdin/stdout"); 347 syslog(LOG_INFO, "Completed on %s", (tty != NULL)? tty 362 sppd_ttys_open(char const *tty, int *amaster, int *aslave) argument [all...] |
/freebsd-10.0-release/contrib/texinfo/info/ |
H A D | terminal.c | 696 int tty; 706 tty = fileno (stdin); 709 tcgetattr (tty, &original_termios); 710 tcgetattr (tty, &ttybuff); 713 ioctl (tty, TCGETA, &original_termio); 714 ioctl (tty, TCGETA, &ttybuff); 750 tcsetattr (tty, TCSANOW, &ttybuff); 752 tcflow (tty, TCOOFF); 753 tcflow (tty, TCOON); 757 ioctl (tty, TCSET 694 int tty; local 834 int tty; local [all...] |