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

123456789

/freebsd-11-stable/bin/pkill/tests/
H A Dpgrep-t_test.sh8 name="pgrep -t <tty>"
9 tty=`ps -x -o tty -p $$ | tail -1`
10 if [ "$tty" = "??" -o "$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
[all...]
H A Dpkill-t_test.sh8 name="pkill -t <tty>"
9 tty=`ps -x -o tty -p $$ | tail -1`
10 if [ "$tty" = "??" -o "$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
[all...]
/freebsd-11-stable/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.h29 * $FreeBSD: stable/11/sys/sys/tty.h 314538 2017-03-02 04:23:53Z ian $
61 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. */
136 * Userland version of struct tty, for sysctl kern.ttys
162 struct tty *tty_alloc(struct ttydevsw *tsw, void *softc);
163 struct tty *tty_alloc_mute
[all...]
/freebsd-11-stable/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-11-stable/usr.bin/tty/
H A DMakefile4 PROG= tty
/freebsd-11-stable/contrib/groff/src/devices/grotty/
H A DMakefile.sub5 OBJS=tty.$(OBJEXT)
6 CCSRCS=$(srcdir)/tty.cpp
/freebsd-11-stable/usr.bin/write/
H A DMakefile6 BINGRP= tty
/freebsd-11-stable/usr.bin/mesg/
H A Dmesg.c64 char *tty; local
76 if ((tty = ttyname(STDIN_FILENO)) == NULL &&
77 (tty = ttyname(STDOUT_FILENO)) == NULL &&
78 (tty = ttyname(STDERR_FILENO)) == NULL)
80 if (stat(tty, &sb) < 0)
81 err(2, "%s", tty);
94 if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
95 err(2, "%s", tty);
98 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
99 err(2, "%s", tty);
[all...]
/freebsd-11-stable/lib/libc/gen/
H A Dgetttyent.c57 getttynam(const char *tty) argument
61 if (strncmp(tty, "/dev/", 5) == 0)
62 tty += 5;
65 if (!strcmp(tty, t->ty_name))
125 static struct ttyent tty; local
157 tty.ty_name = p;
158 tty.ty_status = 0;
159 tty.ty_window = NULL;
160 tty.ty_group = _TTYS_NOGROUP;
163 if (!*(tty
296 isttystat(const char *tty, int flag) argument
305 isdialuptty(const char *tty) argument
312 isnettty(const char *tty) argument
[all...]
/freebsd-11-stable/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-11-stable/usr.bin/wall/
H A DMakefile6 BINGRP= tty
/freebsd-11-stable/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-11-stable/contrib/less/
H A Dttyin.c27 public HANDLE tty; variable
29 public int tty; variable
40 * Get name of tty device.
51 dev = "/dev/tty";
72 tty = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
75 GetConsoleMode(tty, &console_mode);
77 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT);
87 tty = open("CON", OPEN_READ);
97 * Try /dev/tty.
103 /* The __open() system call translates "/dev/tty" t
[all...]
/freebsd-11-stable/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-11-stable/gnu/usr.bin/groff/src/devices/grotty/
H A DMakefile4 SRCS= tty.cpp
/freebsd-11-stable/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-11-stable/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...]
H A Dinput.c176 int tty; local
186 tty = fileno (rl_instream);
191 FD_SET (tty, &readfds);
192 FD_SET (tty, &exceptfds);
195 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout);
203 result = ioctl (tty, FIONREAD, &chars_avail);
211 tem = fcntl (tty, F_GETFL, 0);
213 fcntl (tty, F_SETFL, (tem | O_NDELAY));
214 chars_avail = read (tty, &input, 1);
216 fcntl (tty, F_SETF
299 int tty; local
[all...]
/freebsd-11-stable/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
190 pty_setowner(struct passwd *pw, const char *tty) argument
[all...]
/freebsd-11-stable/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c100 _nc_trace_ttymode(TTY * tty) argument
167 if (tty->c_iflag & ALLIN)
168 lookup_bits(buf, iflags, "iflags", tty->c_iflag);
170 if (tty->c_oflag & ALLOUT)
171 lookup_bits(buf, oflags, "oflags", tty->c_oflag);
173 if (tty->c_cflag & ALLCTRL)
174 lookup_bits(buf, cflags, "cflags", tty->c_cflag);
193 int value = (int) (tty->c_cflag & CSIZE);
208 if (tty->c_lflag & ALLLOCAL)
209 lookup_bits(buf, lflags, "lflags", tty
[all...]
/freebsd-11-stable/usr.bin/bc/
H A DMakefile5 SRCS= bc.y scan.l tty.c

Completed in 138 milliseconds

123456789