Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 25 of 201) sorted by relevance

123456789

/mirbsd/src/sys/kern/
Dtty_conf.c48 #define ttynodisc ((int (*)(dev_t, struct tty *))enodev)
49 #define ttyerrclose ((int (*)(struct tty *, int flags))enodev)
50 #define ttyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
51 #define ttyerrinput ((int (*)(int c, struct tty *))enodev)
52 #define ttyerrstart ((int (*)(struct tty *))enodev)
54 int nullioctl(struct tty *, u_long, caddr_t, int, struct proc *);
58 int tbopen(dev_t dev, struct tty *tp);
59 int tbclose(struct tty *tp, int flags);
60 int tbread(struct tty *tp, struct uio *uio, int flags);
61 int tbtioctl(struct tty *tp, u_long cmd, caddr_t data,
[all …]
Dtty.c69 static int ttnread(struct tty *);
70 static void ttyblock(struct tty *);
71 void ttyunblock(struct tty *);
72 static void ttyecho(int, struct tty *);
73 static void ttyrubo(struct tty *, int);
178 register struct tty *tp;
203 register struct tty *tp; in ttyclose()
205 extern struct tty *constty; /* Temporary virtual console. */
238 register struct tty *tp;
602 register struct tty *tp;
[all …]
Dtty_tb.c108 int tbopen(dev_t, struct tty *);
109 void tbclose(struct tty *);
110 int tbread(struct tty *, struct uio *);
111 void tbinput(int, struct tty *);
112 int tbtioctl(struct tty *, u_long, caddr_t, int, struct proc *);
122 register struct tty *tp;
148 register struct tty *tp; in tbclose()
161 register struct tty *tp; in tbread()
187 register struct tty *tp;
330 struct tty *tp; in tbtioctl()
/mirbsd/src/sys/sys/
Dtty.h103 struct tty { struct
104 TAILQ_ENTRY(tty) tty_link; /* Link in global tty list. */
122 void (*t_oproc)(struct tty *); argument
124 int (*t_param)(struct tty *, struct termios *); argument
126 int (*t_hwiflow)(struct tty *tp, int flag); argument
236 TAILQ_HEAD(ttylist_head, tty); /* the ttylist is a TAILQ */
260 int nullmodem(struct tty *tp, int flag);
261 int tputchar(int c, struct tty *tp);
262 int ttioctl(struct tty *tp, u_long com, caddr_t data, int flag,
264 int ttread(struct tty *tp, struct uio *uio, int flag);
[all …]
/mirbsd/src/lib/libc/gen/
Dgetttyent.c43 getttynam(const char *tty) in getttynam() argument
49 if (!strcmp(tty, t->ty_name)) in getttynam()
58 static struct ttyent tty; in getttyent() local
82 tty.ty_name = p; in getttyent()
84 if (!*(tty.ty_getty = p)) in getttyent()
85 tty.ty_getty = tty.ty_type = NULL; in getttyent()
88 if (!*(tty.ty_type = p)) in getttyent()
89 tty.ty_type = NULL; in getttyent()
93 tty.ty_status = 0; in getttyent()
94 tty.ty_window = NULL; in getttyent()
[all …]
/mirbsd/src/lib/libssl/src/crypto/des/
Dread_pwd.c148 #define TTY_get(tty,data) tcgetattr(tty,data) argument
149 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) argument
156 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) argument
157 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) argument
164 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data) argument
165 #define TTY_set(tty,data) ioctl(tty,TIOCSETP,data) argument
207 static int noecho_fgets(char *buf, int size, FILE *tty);
279 static FILE *tty; in des_read_pw() local
292 tty=NULL; in des_read_pw()
295 if ((tty=fopen("con","r")) == NULL) in des_read_pw()
[all …]
/mirbsd/src/lib/libdes/
Dread_pwd.c100 #define TTY_get(tty,data) tcgetattr(tty,data) argument
101 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) argument
108 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) argument
109 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) argument
116 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data) argument
117 #define TTY_set(tty,data) ioctl(tty,TIOCSETP,data) argument
152 static int noecho_fgets(char *buf, int size, FILE *tty);
255 FILE *tty=NULL; local
259 if ((tty=fopen("/dev/tty","r")) == NULL)
260 tty=stdin;
[all …]
/mirbsd/src/usr.bin/less/
Dttyin.c27 public int tty; variable
42 tty = (int) CreateFile("CONIN$", GENERIC_READ, in open_getchr()
45 GetConsoleMode((HANDLE)tty, &console_mode); in open_getchr()
47 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT); in open_getchr()
57 tty = open("CON", OPEN_READ); in open_getchr()
74 tty = __open("/dev/tty", OPEN_READ); in open_getchr()
76 tty = open("/dev/tty", OPEN_READ); in open_getchr()
78 if (tty < 0) in open_getchr()
79 tty = 2; in open_getchr()
91 SetConsoleMode((HANDLE)tty, console_mode); in close_getchr()
[all …]
/mirbsd/src/usr.bin/ssh/
Dsshpty.c62 pty_release(const char *tty) in pty_release() argument
64 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) in pty_release()
65 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); in pty_release()
66 if (chmod(tty, (mode_t) 0666) < 0) in pty_release()
67 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); in pty_release()
73 pty_make_controlling_tty(int *ttyfd, const char *tty) in pty_make_controlling_tty() argument
103 fd = open(tty, O_RDWR); in pty_make_controlling_tty()
105 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty()
135 pty_setowner(struct passwd *pw, const char *tty) in pty_setowner() argument
157 if (stat(tty, &st)) in pty_setowner()
[all …]
/mirbsd/src/gnu/usr.bin/texinfo/info/
Dterminal.c695 int tty; in terminal_prep_terminal() local
705 tty = fileno (stdin); in terminal_prep_terminal()
708 tcgetattr (tty, &original_termios); in terminal_prep_terminal()
709 tcgetattr (tty, &ttybuff); in terminal_prep_terminal()
712 ioctl (tty, TCGETA, &original_termio); in terminal_prep_terminal()
713 ioctl (tty, TCGETA, &ttybuff); in terminal_prep_terminal()
749 tcsetattr (tty, TCSANOW, &ttybuff); in terminal_prep_terminal()
751 tcflow (tty, TCOOFF); in terminal_prep_terminal()
752 tcflow (tty, TCOON); in terminal_prep_terminal()
756 ioctl (tty, TCSETA, &ttybuff); in terminal_prep_terminal()
[all …]
/mirbsd/src/usr.bin/mesg/
Dmesg.c65 char *tty; in main() local
77 if ((tty = ttyname(STDERR_FILENO)) == NULL) in main()
79 if (stat(tty, &sb) < 0) in main()
80 err(2, "%s", tty); in main()
93 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) in main()
94 err(2, "%s", tty); in main()
97 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) in main()
98 err(2, "%s", tty); in main()
/mirbsd/src/lib/libncurses/src/ncurses/trace/
Dlib_tracebits.c85 _nc_trace_ttymode(TTY * tty) in _nc_trace_ttymode() argument
146 if (tty->c_iflag & ALLIN) in _nc_trace_ttymode()
147 lookup_bits(buf, iflags, "iflags", tty->c_iflag); in _nc_trace_ttymode()
149 if (tty->c_oflag & ALLOUT) in _nc_trace_ttymode()
150 lookup_bits(buf, oflags, "oflags", tty->c_oflag); in _nc_trace_ttymode()
152 if (tty->c_cflag & ALLCTRL) in _nc_trace_ttymode()
153 lookup_bits(buf, cflags, "cflags", tty->c_cflag); in _nc_trace_ttymode()
179 int value = (tty->c_cflag & CSIZE); in _nc_trace_ttymode()
194 if (tty->c_lflag & ALLLOCAL) in _nc_trace_ttymode()
195 lookup_bits(buf, lflags, "lflags", tty->c_lflag); in _nc_trace_ttymode()
[all …]
/mirbsd/src/usr.bin/write/
Dwrite.c75 char tty[MAXPATHLEN], *mytty, *cp; in main() local
103 search_utmp(argv[1], tty, sizeof tty, mytty, myuid); in main()
104 do_write(tty, mytty, myuid); in main()
134 utmp_chk(char *user, char *tty) in utmp_chk() argument
144 strncmp(tty, u.ut_line, sizeof(u.ut_line)) == 0) { in utmp_chk()
165 search_utmp(char *user, char *tty, int ttyl, char *mytty, uid_t myuid) in search_utmp() argument
194 (void)strlcpy(tty, atty, ttyl); in search_utmp()
203 (void)strlcpy(tty, mytty, ttyl); in search_utmp()
209 user, tty); in search_utmp()
217 term_chk(char *tty, int *msgsokP, time_t *atimeP, int showerror) in term_chk() argument
[all …]
/mirbsd/src/sbin/slattach/
Dslattach.c91 struct termios tty; in main() local
131 tty.c_cflag = CREAD | CS8 | cflag; in main()
132 tty.c_iflag = 0; in main()
133 tty.c_lflag = 0; in main()
134 tty.c_oflag = 0; in main()
135 tty.c_cc[VMIN] = 1; in main()
136 tty.c_cc[VTIME] = 0; in main()
137 cfsetspeed(&tty, speed); in main()
138 if (tcsetattr(fd, TCSADRAIN, &tty) < 0) in main()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dinflow.c522 int tty; in new_tty() local
531 tty = open ("/dev/tty", O_RDWR); in new_tty()
532 if (tty > 0) in new_tty()
537 ioctl (tty, TIOCNOTTY, 0); in new_tty()
538 close (tty); in new_tty()
544 tty = open (inferior_thisrun_terminal, O_RDWR | O_NOCTTY); in new_tty()
545 if (tty == -1) in new_tty()
552 if (tty != 0) in new_tty()
555 dup (tty); in new_tty()
557 if (tty != 1) in new_tty()
[all …]
/mirbsd/src/usr.sbin/wsmoused/
Dmouse_protocols.c190 struct termios tty; in SetMouseSpeed() local
196 if (tcgetattr(mouse.mfd, &tty) < 0) { in SetMouseSpeed()
203 switch (cfgetispeed(&tty)) { in SetMouseSpeed()
219 tty.c_iflag = IGNBRK | IGNPAR; in SetMouseSpeed()
220 tty.c_oflag = 0; in SetMouseSpeed()
221 tty.c_lflag = 0; in SetMouseSpeed()
222 tty.c_cflag = (tcflag_t) cflag; in SetMouseSpeed()
223 tty.c_cc[VTIME] = 0; in SetMouseSpeed()
224 tty.c_cc[VMIN] = 1; in SetMouseSpeed()
228 cfsetispeed(&tty, B9600); in SetMouseSpeed()
[all …]
/mirbsd/src/sys/net/
Dif_stripvar.h16 struct tty *sc_ttyp; /* pointer to tty structure */
59 void stripclose(struct tty *);
60 void stripinput(int, struct tty *);
62 int stripopen(dev_t, struct tty *);
65 void stripstart(struct tty *);
66 int striptioctl(struct tty *, u_long, caddr_t, int);
Dif_slvar.h48 struct tty *sc_ttyp; /* pointer to tty structure */
119 void slclose(struct tty *);
120 void slinput(int, struct tty *);
122 int slopen(dev_t, struct tty *);
125 void slstart(struct tty *);
126 int sltioctl(struct tty *, u_long, caddr_t, int);
Dppp_tty.c129 int pppopen(dev_t dev, struct tty *tp);
130 int pppclose(struct tty *tp, int flag);
131 int pppread(struct tty *tp, struct uio *uio, int flag);
132 int pppwrite(struct tty *tp, struct uio *uio, int flag);
133 int ppptioctl(struct tty *tp, u_long cmd, caddr_t data, int flag,
135 int pppinput(int c, struct tty *tp);
136 int pppstart(struct tty *tp, int);
184 struct tty *tp;
242 struct tty *tp; in pppclose()
254 if (tp == (struct tty *) sc->sc_devp) {
[all …]
/mirbsd/src/lib/libssl/src/crypto/ui/
Dui_openssl.c206 # define TTY_get(tty,data) tcgetattr(tty,data) argument
207 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) argument
214 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) argument
215 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) argument
222 # define TTY_get(tty,data) ioctl(tty,TIOCGETP,data) argument
223 # define TTY_set(tty,data) ioctl(tty,TIOCSETP,data) argument
293 static int noecho_fgets(char *buf, int size, FILE *tty);
633 static int noecho_fgets(char *buf, int size, FILE *tty) in noecho_fgets() argument
/mirbsd/src/usr.bin/talk/
Dinit_disp.c110 struct termios tty; in set_edit_chars() local
112 tcgetattr(STDIN_FILENO, &tty); in set_edit_chars()
113 buf[0] = my_win.cerase = (tty.c_cc[VERASE] == (u_char)_POSIX_VDISABLE) in set_edit_chars()
114 ? CERASE : tty.c_cc[VERASE]; in set_edit_chars()
115 buf[1] = my_win.kill = (tty.c_cc[VKILL] == (u_char)_POSIX_VDISABLE) in set_edit_chars()
116 ? CKILL : tty.c_cc[VKILL]; in set_edit_chars()
117 buf[2] = my_win.werase = (tty.c_cc[VWERASE] == (u_char)_POSIX_VDISABLE) in set_edit_chars()
118 ? CWERASE : tty.c_cc[VWERASE]; in set_edit_chars()
/mirbsd/src/lib/libutil/
Dlogin.c52 int tty; in login() local
54 tty = ttyslot(); in login()
55 if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { in login()
56 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); in login()
68 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); in login()
/mirbsd/src/usr.bin/finger/
Dsprint.c97 if (*w->tty) in sflag_print()
99 w->tty[0] != 't' || w->tty[1] != 't' || in sflag_print()
100 w->tty[2] != 'y' ? w->tty : w->tty + 3); in sflag_print()
/mirbsd/src/usr.bin/login/
Dlogin.c143 char term[64], *hostname, *tty; variable
307 if ((tty = strrchr(ttyn, '/'))) in main()
308 ++tty; in main()
310 tty = ttyn; in main()
346 if (type = getttyauth(tty)) in main()
526 if (pwd && rootlogin && !rootterm(tty)) in main()
538 if (rootlogin && !rootterm(tty)) { in main()
545 rusername ? "@" : "", hostname, tty); in main()
549 fullname, tty); in main()
557 log_failedlogin(pwd->pw_uid, hostname, rusername, tty); in main()
[all …]
/mirbsd/src/sys/arch/i386/isa/
Dpccomvar.h48 struct tty *sc_tty;
115 int comstop(struct tty *, int);
125 int comparam(struct tty *, struct termios *);
126 void comstart(struct tty *);
128 int comhwiflow(struct tty *, int);

123456789