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

1234567

/freebsd-current/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 size_t ttydisc_bytesavail(struct tty *tp);
48 int ttydisc_read(struct tty *tp, struct uio *uio, int ioflag);
49 int ttydisc_write(struct tty *tp, struct uio *uio, int ioflag);
50 void ttydisc_canonicalize(struct tty *tp);
51 void ttydisc_optimize(struct tty *tp);
54 void ttydisc_modem(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. */
68 #define TF_NOPREFIX 0x00001 /* Don't prepend "tty" to device name. */
71 #define TF_OPENED_IN 0x00008 /* "tty" node is in use. */
117 struct termios t_termios_init_in; /* tty%s.init. */
118 struct termios t_termios_lock_in; /* tty%s.lock. */
139 * Userland version of struct tty, for sysctl kern.ttys
165 struct tty *tty_alloc(struct ttydevsw *tsw, void *softc);
166 struct tty *tty_alloc_mutex(struct ttydevsw *tsw, void *softc, struct mtx *mtx);
167 void tty_rel_pgrp(struct tty *t
[all...]
/freebsd-current/bin/pkill/tests/
H A Dpgrep-t_test.sh7 name="pgrep -t <tty>"
8 tty=`ps -x -o tty -p $$ | tail -1`
9 if [ "$tty" = "??" -o "$tty" = "-" ]; then
10 tty="-"
13 case $tty in
14 pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
15 *) ttyshort=`echo $tty | cut -c 4-` ;;
23 pid=`pgrep -f -t $tty
[all...]
H A Dpkill-t_test.sh7 name="pkill -t <tty>"
8 tty=`ps -x -o tty -p $$ | tail -1`
9 if [ "$tty" = "??" -o "$tty" = "-" ]; then
10 tty="-"
13 case $tty in
14 pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
15 *) ttyshort=`echo $tty | cut -c 4-` ;;
22 pkill -f -t $tty
[all...]
/freebsd-current/crypto/heimdal/appl/login/
H A Dtty.c39 * 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-current/usr.bin/tty/
H A DMakefile2 PROG= tty
/freebsd-current/usr.bin/write/
H A DMakefile4 BINGRP= tty
H A Dwrite.c74 char tty[MAXPATHLEN], *mytty; local
141 errx(1, "can't find your tty");
143 errx(1, "can't find your tty's name");
154 search_utmp(devfd, argv[0], tty, mytty, myuid);
155 do_write(devfd, tty, mytty, login);
178 (void)fprintf(stderr, "usage: write user [tty]\n");
184 * the given tty
187 utmp_chk(char *user, char *tty) argument
191 strncpy(lu.ut_line, tty, sizeof lu.ut_line);
214 search_utmp(int devfd, char *user, char *tty, cha argument
262 term_chk(int devfd, char *tty, int *msgsokP, time_t *atimeP, int showerror) argument
280 do_write(int devfd, char *tty, char *mytty, const char *login) argument
[all...]
/freebsd-current/usr.bin/mesg/
H A Dmesg.c52 char *tty; local
64 if ((tty = ttyname(STDIN_FILENO)) == NULL &&
65 (tty = ttyname(STDOUT_FILENO)) == NULL &&
66 (tty = ttyname(STDERR_FILENO)) == NULL)
68 if (stat(tty, &sb) < 0)
69 err(2, "%s", tty);
82 if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
83 err(2, "%s", tty);
86 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
87 err(2, "%s", tty);
[all...]
/freebsd-current/lib/libc/gen/
H A Dgetttyent.c53 getttynam(const char *tty) argument
57 if (strncmp(tty, "/dev/", 5) == 0)
58 tty += 5;
61 if (!strcmp(tty, t->ty_name))
121 static struct ttyent tty; local
153 tty.ty_name = p;
154 tty.ty_status = 0;
155 tty.ty_window = NULL;
156 tty.ty_group = _TTYS_NOGROUP;
159 if (!*(tty
292 isttystat(const char *tty, int flag) argument
301 isdialuptty(const char *tty) argument
308 isnettty(const char *tty) argument
[all...]
/freebsd-current/usr.bin/wall/
H A DMakefile4 BINGRP= tty
/freebsd-current/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c60 const void *tty; local
75 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
79 PAM_LOG("Got TTY: %s", (const char *)tty);
82 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) {
84 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1;
87 if (tty != NULL && (ty = getttynam(tty)) != NULL &&
/freebsd-current/libexec/rc/rc.d/
H A Dserial52 comcontrol /dev/tty${dc}${i} dtrwait 300 drainwait $drainwait
53 stty < /dev/tty${dc}${i}.init -clocal crtscts hupcl 115200 reprint ^R
54 stty < /dev/tty${dc}${i}.lock -clocal -crtscts -hupcl 0
68 stty < /dev/tty${dc}${i}.init reprint undef
71 stty < /dev/tty${dc}${i}.lock clocal
74 stty < /dev/tty${dc}${i}.lock 300
87 comcontrol /dev/tty${dc}${i} dtrwait 100 drainwait 180
90 stty < /dev/tty${dc}${i}.init crtscts 115200
91 stty < /dev/tty${dc}${i}.lock crtscts
106 stty < /dev/tty
[all...]
/freebsd-current/crypto/openssh/
H A Dsshpty.c6 * Allocating a pseudo-terminal, and making it the controlling tty.
60 * descriptors for the pty and tty sides and the name of the tty side are
84 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */
87 pty_release(const char *tty) argument
90 if (chown(tty, (uid_t) 0, (gid_t) 0) == -1)
91 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
92 if (chmod(tty, (mode_t) 0666) == -1)
93 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno));
97 /* Makes the tty th
100 pty_make_controlling_tty(int *ttyfd, const char *tty) argument
166 pty_setowner(struct passwd *pw, const char *tty) argument
[all...]
/freebsd-current/stand/kboot/kboot/
H A Dinit.c92 struct host_termios tty;
94 host_cfmakeraw(&tty);
95 host_tcsetattr(fd, HOST_TCANOW, &tty);
/freebsd-current/contrib/less/
H A Dttyin.c27 public HANDLE tty; variable
29 public int tty; variable
42 /* The __open() system call translates "/dev/tty" to "con". */
50 * Open the tty device.
51 * Try ttyname(), then try /dev/tty, then use file descriptor 2.
71 fd = open_tty_device("/dev/tty");
89 tty = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
92 GetConsoleMode(tty, &console_mode);
94 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT);
104 tty
[all...]
/freebsd-current/lib/libpam/modules/pam_login_access/
H A Dpam_login_access.c72 const void *rhost, *tty, *user; local
89 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
110 } else if (tty != NULL && *(const char *)tty != '\0') {
111 PAM_LOG("Checking login.access for user %s on tty %s",
112 (const char *)user, (const char *)tty);
113 if (login_access(user, tty, &login_access_opts) != 0)
116 (const char *)user, (const char *)tty);
/freebsd-current/usr.sbin/bhyve/
H A Duart_backend.c67 struct ttyfd tty; member in struct:uart_softc
137 if (sc->tty.opened) {
166 if (sc->tty.opened) {
185 (void)ttyread(&sc->tty);
188 ((ch = ttyread(&sc->tty)) != -1))
198 } else if (sc->tty.opened) {
199 ttywrite(&sc->tty, ch);
219 if (sc->tty.opened) {
221 * Flush any unread input from the tty buffer.
224 nread = read(sc->tty
[all...]
/freebsd-current/usr.bin/bc/
H A DMakefile4 SRCS= bc.y scan.l tty.c
/freebsd-current/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c107 _nc_trace_ttymode(const TTY * tty) argument
177 if (tty->c_iflag & ALLIN)
178 lookup_bits(buf, iflags, "iflags", tty->c_iflag);
180 if (tty->c_oflag & ALLOUT)
181 lookup_bits(buf, oflags, "oflags", tty->c_oflag);
183 if (tty->c_cflag & ALLCTRL)
184 lookup_bits(buf, cflags, "cflags", tty->c_cflag);
203 int value = (int) (tty->c_cflag & CSIZE);
218 if (tty->c_lflag & ALLLOCAL)
219 lookup_bits(buf, lflags, "lflags", tty
[all...]
/freebsd-current/contrib/tcsh/
H A Dsh.file.c140 * This must be done after every command: if the tty gets into raw or
164 struct termios tty, tty_normal; local
166 struct termio tty, tty_normal;
169 struct sgttyb tty, tty_normal;
177 (void) tcgetattr(SHOUT, &tty);
181 tty_normal = tty;
182 tty.c_iflag &= ~INLCR;
183 tty.c_oflag &= ~ONLCR;
185 (void) xtcsetattr(SHOUT, TCSANOW, &tty);
187 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty);
216 struct termios tty, tty_normal; local
218 struct termio tty, tty_normal; local
221 struct sgttyb tty, tty_normal; local
385 struct termios tty; local
[all...]
/freebsd-current/libexec/talkd/
H A Dextern.h36 int find_user(const char *name, char *tty);

Completed in 451 milliseconds

1234567