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

1234567

/freebsd-13-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-13-stable/sys/sys/
H A Dttydisc.h38 #error "can only be included through <sys/tty.h>"
43 struct tty;
47 void ttydisc_open(struct tty *tp);
48 void ttydisc_close(struct tty *tp);
49 int ttydisc_read(struct tty *tp, struct uio *uio, int ioflag);
50 int ttydisc_write(struct tty *tp, struct uio *uio, int ioflag);
51 void ttydisc_optimize(struct tty *tp);
54 void ttydisc_modem(struct tty *tp, int open);
56 int ttydisc_rint(struct tty *tp, char c, int flags);
57 size_t ttydisc_rint_simple(struct tty *t
[all...]
H A Dttyhook.h35 #error "can only be included through <sys/tty.h>"
38 struct tty;
45 typedef int th_rint_t(struct tty *tp, char c, int flags);
46 typedef size_t th_rint_bypass_t(struct tty *tp, const void *buf, size_t len);
47 typedef void th_rint_done_t(struct tty *tp);
48 typedef size_t th_rint_poll_t(struct tty *tp);
50 typedef size_t th_getc_inject_t(struct tty *tp, void *buf, size_t len);
51 typedef void th_getc_capture_t(struct tty *tp, const void *buf, size_t len);
52 typedef size_t th_getc_poll_t(struct tty *tp);
54 typedef void th_close_t(struct tty *t
[all...]
H A Dttydevsw.h38 #error "can only be included through <sys/tty.h>"
45 typedef int tsw_open_t(struct tty *tp);
46 typedef void tsw_close_t(struct tty *tp);
47 typedef void tsw_outwakeup_t(struct tty *tp);
48 typedef void tsw_inwakeup_t(struct tty *tp);
49 typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data,
51 typedef int tsw_cioctl_t(struct tty *tp, int unit, u_long cmd, caddr_t data,
53 typedef int tsw_param_t(struct tty *tp, struct termios *t);
54 typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff);
55 typedef int tsw_mmap_t(struct tty *t
[all...]
H A Dtty.h63 struct tty { struct
66 TAILQ_ENTRY(tty) t_list; /* (l) TTY list entry. */
70 #define TF_NOPREFIX 0x00001 /* Don't prepend "tty" to device name. */
73 #define TF_OPENED_IN 0x00008 /* "tty" node is in use. */
119 struct termios t_termios_init_in; /* tty%s.init. */
120 struct termios t_termios_lock_in; /* tty%s.lock. */
141 * Userland version of struct tty, for sysctl kern.ttys
167 struct tty *tty_alloc(struct ttydevsw *tsw, void *softc);
168 struct tty *tty_alloc_mutex(struct ttydevsw *tsw, void *softc, struct mtx *mtx);
169 void tty_rel_pgrp(struct tty *t
[all...]
/freebsd-13-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...]
H A Dutmp_login.c85 prepare_utmp (struct utmp *utmp, char *tty, argument
88 char *ttyx = clean_ttyname (tty);
127 void utmp_login(char *tty, const char *username, const char *hostname) argument
133 void utmp_login(char *tty, const char *username, const char *hostname) argument
138 prepare_utmp (&utmp, tty, username, hostname);
/freebsd-13-stable/usr.bin/tty/
H A DMakefile4 PROG= tty
/freebsd-13-stable/usr.bin/write/
H A DMakefile6 BINGRP= tty
H A Dwrite.c89 char tty[MAXPATHLEN], *mytty; local
156 errx(1, "can't find your tty");
158 errx(1, "can't find your tty's name");
169 search_utmp(devfd, argv[0], tty, mytty, myuid);
170 do_write(devfd, tty, mytty, login);
193 (void)fprintf(stderr, "usage: write user [tty]\n");
199 * the given tty
202 utmp_chk(char *user, char *tty) argument
206 strncpy(lu.ut_line, tty, sizeof lu.ut_line);
229 search_utmp(int devfd, char *user, char *tty, cha argument
277 term_chk(int devfd, char *tty, int *msgsokP, time_t *atimeP, int showerror) argument
295 do_write(int devfd, char *tty, char *mytty, const char *login) argument
[all...]
/freebsd-13-stable/usr.bin/mesg/
H A Dmesg.c66 char *tty; local
78 if ((tty = ttyname(STDIN_FILENO)) == NULL &&
79 (tty = ttyname(STDOUT_FILENO)) == NULL &&
80 (tty = ttyname(STDERR_FILENO)) == NULL)
82 if (stat(tty, &sb) < 0)
83 err(2, "%s", tty);
96 if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
97 err(2, "%s", tty);
100 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
101 err(2, "%s", tty);
[all...]
/freebsd-13-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-13-stable/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c63 const void *tty; local
78 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
82 PAM_LOG("Got TTY: %s", (const char *)tty);
85 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) {
87 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1;
90 if (tty != NULL && (ty = getttynam(tty)) != NULL &&
/freebsd-13-stable/usr.bin/wall/
H A DMakefile6 BINGRP= tty
/freebsd-13-stable/libexec/rc/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-13-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-13-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
165 pty_setowner(struct passwd *pw, const char *tty) argument
[all...]
/freebsd-13-stable/lib/libpam/modules/pam_login_access/
H A Dpam_login_access.c74 const void *rhost, *tty, *user; local
91 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
112 } else if (tty != NULL && *(const char *)tty != '\0') {
113 PAM_LOG("Checking login.access for user %s on tty %s",
114 (const char *)user, (const char *)tty);
115 if (login_access(user, tty, &login_access_opts) != 0)
118 (const char *)user, (const char *)tty);
/freebsd-13-stable/usr.bin/bc/
H A DMakefile5 SRCS= bc.y scan.l tty.c
/freebsd-13-stable/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-13-stable/lib/libutil/
H A Dlogin_ok.c128 login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap, argument
133 if (lc != NULL && tty != NULL && *tty != '\0') {
138 te = getttynam(tty); /* Need group name */
142 if (ttl != NULL && !login_str2inlist(ttl, tty, grp, 0))
143 rc = 0; /* tty or ttygroup not in allow list */
147 if (ttl != NULL && login_str2inlist(ttl, tty, grp, 0))
148 rc = 0; /* tty or ttygroup in deny list */
158 * Determine whether or not login on a tty is accessible for
163 auth_ttyok(login_cap_t *lc, const char * tty) argument
[all...]
/freebsd-13-stable/libexec/talkd/
H A Dextern.h38 int find_user(const char *name, char *tty);
/freebsd-13-stable/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c101 _nc_trace_ttymode(TTY * tty) argument
171 if (tty->c_iflag & ALLIN)
172 lookup_bits(buf, iflags, "iflags", tty->c_iflag);
174 if (tty->c_oflag & ALLOUT)
175 lookup_bits(buf, oflags, "oflags", tty->c_oflag);
177 if (tty->c_cflag & ALLCTRL)
178 lookup_bits(buf, cflags, "cflags", tty->c_cflag);
197 int value = (int) (tty->c_cflag & CSIZE);
212 if (tty->c_lflag & ALLLOCAL)
213 lookup_bits(buf, lflags, "lflags", tty
[all...]

Completed in 205 milliseconds

1234567