Searched refs:tty (Results 1 - 25 of 217) sorted by relevance

123456789

/freebsd-9.3-release/sys/sys/
H A Dttydisc.h36 #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 Dttyhook.h33 #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 Dttydevsw.h36 #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 Dtty.h61 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-9.3-release/crypto/heimdal/appl/login/
H A Dtty.c36 RCSID("$Id: tty.c 7464 1999-12-02 17:05:13Z joda $");
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 Dread_string.c56 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-9.3-release/tools/regression/usr.bin/pkill/
H A Dpgrep-t.t8 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 Dpkill-t.t8 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-9.3-release/usr.bin/tty/
H A DMakefile4 PROG= tty
/freebsd-9.3-release/usr.bin/write/
H A DMakefile6 BINGRP= tty
/freebsd-9.3-release/usr.bin/mesg/
H A Dmesg.c68 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-9.3-release/contrib/less/
H A Dttyin.c26 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-9.3-release/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c61 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-9.3-release/usr.bin/wall/
H A DMakefile6 BINGRP= tty
/freebsd-9.3-release/lib/libc/gen/
H A Dgetttyent.c56 getttynam(const char *tty) argument
60 if (strncmp(tty, "/dev/", 5) == 0)
61 tty += 5;
64 if (!strcmp(tty, t->ty_name))
103 static struct ttyent tty; local
135 tty.ty_name = p;
136 tty.ty_status = 0;
137 tty.ty_window = NULL;
138 tty.ty_group = _TTYS_NOGROUP;
141 if (!*(tty
272 isttystat(const char *tty, int flag) argument
281 isdialuptty(const char *tty) argument
288 isnettty(const char *tty) argument
[all...]
/freebsd-9.3-release/etc/rc.d/
H A Dserial53 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-9.3-release/usr.sbin/pkg_install/lib/
H A Dmsg.c45 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-9.3-release/crypto/openssl/crypto/des/
H A Dread_pwd.c151 # define TTY_get(tty,data) tcgetattr(tty,data)
152 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data)
159 # define TTY_get(tty,data) ioctl(tty,TCGETA,data)
160 # define TTY_set(tty,data) ioctl(tty,TCSETA,data)
167 # define TTY_get(tty,data) ioctl(tty,TIOCGET
284 static FILE *tty; local
492 noecho_fgets(char *buf, int size, FILE *tty) argument
[all...]
/freebsd-9.3-release/gnu/usr.bin/groff/src/devices/grotty/
H A DMakefile4 SRCS= tty.cpp
/freebsd-9.3-release/contrib/libreadline/
H A Drltty.c142 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-9.3-release/crypto/openssh/
H A Dsshpty.c6 * 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-9.3-release/lib/libpam/modules/pam_login_access/
H A Dpam_login_access.c59 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-9.3-release/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c103 _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-9.3-release/usr.bin/bluetooth/rfcomm_sppd/
H A Drfcomm_sppd.c61 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-9.3-release/contrib/texinfo/info/
H A Dterminal.c696 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...]

Completed in 162 milliseconds

123456789