Symbol: tty
crypto/openssh/auth-sia.c
84
session_setup_sia(struct passwd *pw, char *tty)
crypto/openssh/auth-sia.c
92
tty, 0, NULL) != SIASUCCESS)
crypto/openssh/loginrec.c
847
int tty;
crypto/openssh/loginrec.c
854
tty=0;
crypto/openssh/loginrec.c
857
tty++;
crypto/openssh/loginrec.c
869
tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
crypto/openssh/loginrec.c
873
if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
crypto/openssh/loginrec.c
876
pos = (off_t)tty * sizeof(struct utmp);
crypto/openssh/loginrec.c
884
__func__, tty, UTMP_FILE);
crypto/openssh/loginrec.c
906
__func__, tty, UTMP_FILE);
crypto/openssh/monitor.c
1545
record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid,
crypto/openssh/monitor.c
1555
debug3_f("tty %s ptyfd %d", s->tty, s->ptyfd);
crypto/openssh/monitor.c
1577
res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
crypto/openssh/monitor.c
1580
pty_setowner(authctxt->pw, s->tty);
crypto/openssh/monitor.c
1583
(r = sshbuf_put_cstring(m, s->tty)) != 0)
crypto/openssh/monitor.c
1618
debug3_f("tty %s ptyfd %d", s->tty, s->ttyfd);
crypto/openssh/monitor.c
1635
char *tty;
crypto/openssh/monitor.c
1640
if ((r = sshbuf_get_cstring(m, &tty, NULL)) != 0)
crypto/openssh/monitor.c
1642
if ((s = session_by_tty(tty)) != NULL)
crypto/openssh/monitor.c
1645
free(tty);
crypto/openssh/monitor_wrap.c
685
if ((r = sshbuf_put_cstring(m, s->tty)) != 0)
crypto/openssh/session.c
1171
child_set_env(&env, &envsize, "SSH_TTY", s->tty);
crypto/openssh/session.c
1531
session_setup_sia(pw, s->ttyfd == -1 ? NULL : s->tty);
crypto/openssh/session.c
1804
session_by_tty(char *tty)
crypto/openssh/session.c
1809
if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) {
crypto/openssh/session.c
1810
debug("session_by_tty: session %d tty %s", i, tty);
crypto/openssh/session.c
1814
debug("session_by_tty: unknown tty %.100s", tty);
crypto/openssh/session.c
1917
if (!mm_pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) {
crypto/openssh/session.c
1925
debug("session_pty_req: session %d alloc %s", s->self, s->tty);
crypto/openssh/session.c
2266
debug_f("session %d release %s", s->self, s->tty);
crypto/openssh/session.c
2270
record_logout(s->pid, s->tty, s->pw->pw_name);
crypto/openssh/session.c
2274
pty_release(s->tty);
crypto/openssh/session.c
2538
if (strncmp(s->tty, "/dev/", 5) != 0) {
crypto/openssh/session.c
2539
cp = strrchr(s->tty, '/');
crypto/openssh/session.c
2540
cp = (cp == NULL) ? s->tty : cp + 1;
crypto/openssh/session.c
2542
cp = s->tty + 5;
crypto/openssh/session.c
619
pty_make_controlling_tty(&ttyfd, s->tty);
crypto/openssh/session.c
671
const char *forced = NULL, *tty = NULL;
crypto/openssh/session.c
704
tty = s->tty;
crypto/openssh/session.c
705
if (strncmp(tty, "/dev/", 5) == 0)
crypto/openssh/session.c
706
tty += 5;
crypto/openssh/session.c
711
tty == NULL ? "" : " on ",
crypto/openssh/session.c
712
tty == NULL ? "" : tty,
crypto/openssh/session.h
44
char tty[TTYSZ];
crypto/openssh/sshlogin.c
137
record_login(pid_t pid, const char *tty, const char *user, uid_t uid,
crypto/openssh/sshlogin.c
145
li = login_alloc_entry(pid, user, host, tty);
crypto/openssh/sshlogin.c
167
record_logout(pid_t pid, const char *tty, const char *user)
crypto/openssh/sshlogin.c
171
li = login_alloc_entry(pid, user, NULL, tty);
crypto/openssh/sshpty.c
100
pty_make_controlling_tty(int *ttyfd, const char *tty)
crypto/openssh/sshpty.c
134
fd = open(tty, O_RDWR);
crypto/openssh/sshpty.c
136
error("%.100s: %.100s", tty, strerror(errno));
crypto/openssh/sshpty.c
166
pty_setowner(struct passwd *pw, const char *tty)
crypto/openssh/sshpty.c
185
if (stat(tty, &st) == -1)
crypto/openssh/sshpty.c
186
fatal("stat(%.100s) failed: %.100s", tty,
crypto/openssh/sshpty.c
190
ssh_selinux_setup_pty(pw->pw_name, tty);
crypto/openssh/sshpty.c
194
if (chown(tty, pw->pw_uid, gid) == -1) {
crypto/openssh/sshpty.c
198
tty, (u_int)pw->pw_uid, (u_int)gid,
crypto/openssh/sshpty.c
202
tty, (u_int)pw->pw_uid, (u_int)gid,
crypto/openssh/sshpty.c
208
if (chmod(tty, mode) == -1) {
crypto/openssh/sshpty.c
212
tty, (u_int)mode, strerror(errno));
crypto/openssh/sshpty.c
215
tty, (u_int)mode, strerror(errno));
crypto/openssh/sshpty.c
87
pty_release(const char *tty)
crypto/openssh/sshpty.c
90
if (chown(tty, (uid_t) 0, (gid_t) 0) == -1)
crypto/openssh/sshpty.c
91
error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
crypto/openssh/sshpty.c
92
if (chmod(tty, (mode_t) 0666) == -1)
crypto/openssh/sshpty.c
93
error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno));
games/hunt/huntd/driver.c
1092
int tty;
games/hunt/huntd/driver.c
1095
if ((tty = open(_PATH_TTY, O_WRONLY)) >= 0) {
games/hunt/huntd/driver.c
1096
fp = fdopen(tty, "w");
lib/libc/gen/getttyent.c
118
tty.ty_name = p;
lib/libc/gen/getttyent.c
119
tty.ty_status = 0;
lib/libc/gen/getttyent.c
120
tty.ty_window = NULL;
lib/libc/gen/getttyent.c
121
tty.ty_group = _TTYS_NOGROUP;
lib/libc/gen/getttyent.c
124
if (!*(tty.ty_getty = p))
lib/libc/gen/getttyent.c
125
tty.ty_getty = tty.ty_type = NULL;
lib/libc/gen/getttyent.c
128
if (!*(tty.ty_type = p))
lib/libc/gen/getttyent.c
129
tty.ty_type = NULL;
lib/libc/gen/getttyent.c
133
tty.ty_status |= TTY_DIALUP;
lib/libc/gen/getttyent.c
135
tty.ty_status |= TTY_NETWORK;
lib/libc/gen/getttyent.c
142
tty.ty_status &= ~TTY_ON;
lib/libc/gen/getttyent.c
144
tty.ty_status |= TTY_ON;
lib/libc/gen/getttyent.c
146
tty.ty_status |= TTY_SECURE;
lib/libc/gen/getttyent.c
148
tty.ty_status &= ~TTY_SECURE;
lib/libc/gen/getttyent.c
150
tty.ty_status |= TTY_DIALUP;
lib/libc/gen/getttyent.c
152
tty.ty_status |= TTY_NETWORK;
lib/libc/gen/getttyent.c
154
tty.ty_status |= TTY_IFCONSOLE;
lib/libc/gen/getttyent.c
156
tty.ty_status |= TTY_IFEXISTS;
lib/libc/gen/getttyent.c
158
tty.ty_window = value(p);
lib/libc/gen/getttyent.c
160
tty.ty_group = value(p);
lib/libc/gen/getttyent.c
168
tty.ty_comment = p;
lib/libc/gen/getttyent.c
170
tty.ty_comment = 0;
lib/libc/gen/getttyent.c
173
return (&tty);
lib/libc/gen/getttyent.c
278
isttystat(const char *tty, int flag)
lib/libc/gen/getttyent.c
282
return ((t = getttynam(tty)) == NULL) ? 0 : !!(t->ty_status & flag);
lib/libc/gen/getttyent.c
287
isdialuptty(const char *tty)
lib/libc/gen/getttyent.c
290
return isttystat(tty, TTY_DIALUP);
lib/libc/gen/getttyent.c
294
isnettty(const char *tty)
lib/libc/gen/getttyent.c
297
return isttystat(tty, TTY_NETWORK);
lib/libc/gen/getttyent.c
56
getttynam(const char *tty)
lib/libc/gen/getttyent.c
60
if (strncmp(tty, "/dev/", 5) == 0)
lib/libc/gen/getttyent.c
61
tty += 5;
lib/libc/gen/getttyent.c
64
if (!strcmp(tty, t->ty_name))
lib/libc/gen/getttyent.c
73
static struct ttyent tty;
lib/libc/gen/getttyent.c
85
tty.ty_name = devpts_name;
lib/libc/gen/getttyent.c
86
tty.ty_getty = NULL;
lib/libc/gen/getttyent.c
87
tty.ty_type = NULL;
lib/libc/gen/getttyent.c
88
tty.ty_status = TTY_NETWORK;
lib/libc/gen/getttyent.c
89
tty.ty_window = NULL;
lib/libc/gen/getttyent.c
90
tty.ty_comment = NULL;
lib/libc/gen/getttyent.c
91
tty.ty_group = _TTYS_NOGROUP;
lib/libc/gen/getttyent.c
92
return (&tty);
lib/libkvm/kvm_proc.c
205
struct tty tty;
lib/libkvm/kvm_proc.c
285
if (KREAD(kd, (u_long)sess.s_ttyp, &tty)) {
lib/libkvm/kvm_proc.c
290
sess.s_ttyp = &tty;
lib/libkvm/kvm_proc.c
291
if (tty.t_dev != NULL) {
lib/libkvm/kvm_proc.c
292
if (KREAD(kd, (u_long)tty.t_dev, &cdev))
lib/libkvm/kvm_proc.c
293
tty.t_dev = NULL;
lib/libkvm/kvm_proc.c
295
tty.t_dev = &cdev;
lib/libkvm/kvm_proc.c
297
if (tty.t_pgrp != NULL) {
lib/libkvm/kvm_proc.c
298
if (KREAD(kd, (u_long)tty.t_pgrp, &tpgrp)) {
lib/libkvm/kvm_proc.c
301
tty.t_pgrp);
lib/libkvm/kvm_proc.c
304
tty.t_pgrp = &tpgrp;
lib/libkvm/kvm_proc.c
306
if (tty.t_session != NULL) {
lib/libkvm/kvm_proc.c
307
if (KREAD(kd, (u_long)tty.t_session, &tsess)) {
lib/libkvm/kvm_proc.c
310
tty.t_session);
lib/libkvm/kvm_proc.c
313
tty.t_session = &tsess;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
123
tty = (const char *)vtty;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
125
if (tty == NULL) {
lib/libpam/modules/pam_lastlog/pam_lastlog.c
131
if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
132
tty = tty + strlen(_PATH_DEV);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
134
if (*tty == '\0') {
lib/libpam/modules/pam_lastlog/pam_lastlog.c
152
dolastlogx(pamh, quiet, pwd, rhost, tty, NULL, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
153
doutmpx(user, rhost, tty, NULL, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
166
const char *tty;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
171
tty = (const char *)vtty;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
173
if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
174
tty = tty + strlen(_PATH_DEV);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
176
if (*tty == '\0')
lib/libpam/modules/pam_lastlog/pam_lastlog.c
179
if (logoutx(tty, 0, DEAD_PROCESS))
lib/libpam/modules/pam_lastlog/pam_lastlog.c
180
logwtmpx(tty, "", "", 0, DEAD_PROCESS);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
183
__func__, tty);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
209
doutmpx(const char *username, const char *hostname, const char *tty,
lib/libpam/modules/pam_lastlog/pam_lastlog.c
223
(void)strncpy(utmpx.ut_line, tty, sizeof(utmpx.ut_line));
lib/libpam/modules/pam_lastlog/pam_lastlog.c
226
t = tty + strlen(tty);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
227
if ((size_t)(t - tty) >= sizeof(utmpx.ut_id)) {
lib/libpam/modules/pam_lastlog/pam_lastlog.c
231
(void)strncpy(utmpx.ut_id, tty, sizeof(utmpx.ut_id));
lib/libpam/modules/pam_lastlog/pam_lastlog.c
242
const char *hostname __unused, const char *tty __unused,
lib/libpam/modules/pam_lastlog/pam_lastlog.c
255
(void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
lib/libpam/modules/pam_lastlog/pam_lastlog.c
95
const char *user, *rhost, *tty;
lib/libpam/modules/pam_login_access/pam_login_access.c
60
const void *rhost, *tty, *user;
lib/libpam/modules/pam_login_access/pam_login_access.c
77
pam_err = pam_get_item(pamh, PAM_TTY, &tty);
lib/libpam/modules/pam_login_access/pam_login_access.c
90
} else if (tty != NULL && *(const char *)tty != '\0') {
lib/libpam/modules/pam_login_access/pam_login_access.c
92
(const char *)user, (const char *)tty);
lib/libpam/modules/pam_login_access/pam_login_access.c
93
if (login_access(user, tty) != 0)
lib/libpam/modules/pam_login_access/pam_login_access.c
96
(const char *)user, (const char *)tty);
lib/libpam/modules/pam_securetty/pam_securetty.c
62
const void *tty;
lib/libpam/modules/pam_securetty/pam_securetty.c
77
pam_err = pam_get_item(pamh, PAM_TTY, &tty);
lib/libpam/modules/pam_securetty/pam_securetty.c
81
PAM_LOG("Got TTY: %s", (const char *)tty);
lib/libpam/modules/pam_securetty/pam_securetty.c
84
if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) {
lib/libpam/modules/pam_securetty/pam_securetty.c
86
tty = (const char *)tty + sizeof(TTY_PREFIX) - 1;
lib/libpam/modules/pam_securetty/pam_securetty.c
89
if (tty != NULL && (ty = getttynam(tty)) != NULL &&
lib/libpam/modules/pam_unix/pam_unix.c
165
const void *rhost, *tty;
lib/libpam/modules/pam_unix/pam_unix.c
181
retval = pam_get_item(pamh, PAM_TTY, &tty);
lib/libpam/modules/pam_unix/pam_unix.c
258
!auth_ttyok(lc, tty) ||
lib/libutil/login_ok.c
127
login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap,
lib/libutil/login_ok.c
132
if (lc != NULL && tty != NULL && *tty != '\0') {
lib/libutil/login_ok.c
137
te = getttynam(tty); /* Need group name */
lib/libutil/login_ok.c
141
if (ttl != NULL && !login_str2inlist(ttl, tty, grp, 0))
lib/libutil/login_ok.c
146
if (ttl != NULL && login_str2inlist(ttl, tty, grp, 0))
lib/libutil/login_ok.c
162
auth_ttyok(login_cap_t *lc, const char * tty)
lib/libutil/login_ok.c
164
return login_ttyok(lc, tty, "ttys.allow", "ttys.deny");
libexec/comsat/comsat.c
154
char tty[20];
libexec/comsat/comsat.c
165
snprintf(tty, sizeof(tty), "%s%.*s",
libexec/comsat/comsat.c
167
if (stat(tty, &stb) == -1 || !(stb.st_mode & (S_IXUSR | S_IXGRP))) {
libexec/comsat/comsat.c
168
dsyslog(LOG_DEBUG, "%s: wrong mode on %s", utp->ut_user, tty);
libexec/comsat/comsat.c
171
dsyslog(LOG_DEBUG, "notify %s on %s", utp->ut_user, tty);
libexec/comsat/comsat.c
181
if ((tp = fopen(tty, "w")) == NULL) {
libexec/comsat/comsat.c
182
dsyslog(LOG_ERR, "%s: %s", tty, strerror(errno));
libexec/ftpd/ftpd.c
161
char *tty = ttyline; /* for klogin */
libexec/getty/main.c
411
opentty(const char *tty, int flags)
libexec/getty/main.c
415
while ((i = open(tty, flags)) == -1)
libexec/getty/main.c
419
syslog(LOG_ERR, "open %s: %m", tty);
libexec/getty/main.c
433
syslog(LOG_ERR, "login_tty %s: %m", tty);
libexec/rpc.rusersd/rusers_proc.c
107
getidle(const char *tty, const char *display __unused)
libexec/rpc.rusersd/rusers_proc.c
123
if (*tty == 'X') {
libexec/rpc.rusersd/rusers_proc.c
133
sprintf(ttyname, "%s/%s", _PATH_DEV, tty);
libexec/talkd/announce.c
156
if (ttymsg(&iovec, 1, tty, RING_WAIT - 5) != NULL)
libexec/talkd/announce.c
88
print_mesg(const char *tty, CTL_MSG *request, const char *remote_machine)
libexec/talkd/extern.h
33
int find_user(const char *name, char *tty, size_t ttylen);
libexec/talkd/process.c
180
find_user(const char *name, char *tty, size_t ttylen)
libexec/talkd/process.c
200
if (*tty == '\0' || best != 0) {
libexec/talkd/process.c
210
strlcpy(tty, ut->ut_line, ttylen);
libexec/talkd/process.c
216
if (strcmp(ut->ut_line, tty) == 0) {
libexec/utmp_update/utmp_update.c
126
(void)snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, utx->ut_line);
libexec/utmp_update/utmp_update.c
127
fd = open(tty, O_RDONLY|O_NONBLOCK, 0);
libexec/utmp_update/utmp_update.c
130
logerr(errno, "Cannot stat `%s'", tty);
libexec/utmp_update/utmp_update.c
132
logerr(0, "%s: Is not owned by you", tty);
libexec/utmp_update/utmp_update.c
134
logerr(0, "%s: Not a tty device", tty);
libexec/utmp_update/utmp_update.c
136
if (access(tty, W_OK|R_OK) == -1)
libexec/utmp_update/utmp_update.c
137
logerr(errno, "Can't access `%s'", tty);
libexec/utmp_update/utmp_update.c
147
logerr(errno, "Cannot open `%s'", tty);
libexec/utmp_update/utmp_update.c
155
"utmpx pid %ld != parent %ld", tty,
libexec/utmp_update/utmp_update.c
80
char tty[MAXPATHLEN];
sbin/slattach/slattach.c
314
tty.c_lflag = tty.c_iflag = tty.c_oflag = 0;
sbin/slattach/slattach.c
315
tty.c_cflag = CREAD | CS8 | flow_control | modem_control | cflag;
sbin/slattach/slattach.c
316
cfsetispeed(&tty, speed);
sbin/slattach/slattach.c
317
cfsetospeed(&tty, speed);
sbin/slattach/slattach.c
319
if (tcsetattr(fd, TCSAFLUSH, &tty) < 0) {
sbin/slattach/slattach.c
473
tty.c_cflag &= ~CLOCAL;
sbin/slattach/slattach.c
474
if (tcsetattr(fd, TCSAFLUSH, &tty) < 0) {
sbin/slattach/slattach.c
535
cfsetospeed(&tty, B0);
sbin/slattach/slattach.c
536
if (tcsetattr(fd, TCSANOW, &tty) < 0) {
sbin/slattach/slattach.c
87
struct termios tty; /* tty configuration/state */
sys/bus/u4b/serial/usb_serial.c
1033
struct tty *tp;
sys/bus/u4b/serial/usb_serial.c
1062
struct tty *tp;
sys/bus/u4b/serial/usb_serial.c
1091
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
1303
ucom_modem(struct tty *tp, int sigon, int sigoff)
sys/bus/u4b/serial/usb_serial.c
1497
struct tty *tp;
sys/bus/u4b/serial/usb_serial.c
1640
ucom_param(struct tty *tp, struct termios *t)
sys/bus/u4b/serial/usb_serial.c
1718
ucom_start(struct tty *tp)
sys/bus/u4b/serial/usb_serial.c
173
static void ucom_start(struct tty *tp);
sys/bus/u4b/serial/usb_serial.c
174
static void ucom_stop(struct tty *tp, int);
sys/bus/u4b/serial/usb_serial.c
175
static int ucom_param(struct tty *tp, struct termios *t);
sys/bus/u4b/serial/usb_serial.c
176
static int ucom_modem(struct tty *tp, int sigon, int sigoff);
sys/bus/u4b/serial/usb_serial.c
1792
ucom_stop(struct tty *tp, int flag)
sys/bus/u4b/serial/usb_serial.c
181
static void disc_optim(struct tty *, struct termios *, struct ucom_softc *);
sys/bus/u4b/serial/usb_serial.c
1848
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
1953
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
2161
disc_optim(struct tty *tp, struct termios *t, struct ucom_softc *sc)
sys/bus/u4b/serial/usb_serial.c
445
struct tty *tp;
sys/bus/u4b/serial/usb_serial.c
545
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
685
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
804
struct tty *tp;
sys/bus/u4b/serial/usb_serial.c
941
struct tty *tp = sc->sc_tty;
sys/bus/u4b/serial/usb_serial.c
982
ucom_inwakeup(struct tty *tp)
sys/bus/u4b/serial/usb_serial.h
170
struct tty *sc_tty;
sys/dev/misc/dcons/dcons_os.c
124
static void dcons_tty_start(struct tty *);
sys/dev/misc/dcons/dcons_os.c
125
static int dcons_tty_param(struct tty *, struct termios *);
sys/dev/misc/dcons/dcons_os.c
212
struct tty *tp;
sys/dev/misc/dcons/dcons_os.c
256
struct tty *tp;
sys/dev/misc/dcons/dcons_os.c
278
struct tty *tp;
sys/dev/misc/dcons/dcons_os.c
304
dcons_tty_param(struct tty *tp, struct termios *t)
sys/dev/misc/dcons/dcons_os.c
315
dcons_tty_start(struct tty *tp)
sys/dev/misc/dcons/dcons_os.c
339
struct tty *tp;
sys/dev/misc/dcons/dcons_os.c
485
struct tty *tp;
sys/dev/misc/dcons/dcons_os.c
522
struct tty *tp;
sys/dev/misc/nmdm/nmdm.c
152
struct tty *tp, *tp2;
sys/dev/misc/nmdm/nmdm.c
273
struct tty *tp, *tp2;
sys/dev/misc/nmdm/nmdm.c
317
struct tty *tp;
sys/dev/misc/nmdm/nmdm.c
319
struct tty *tp2;
sys/dev/misc/nmdm/nmdm.c
367
struct tty *tp1, *tp;
sys/dev/misc/nmdm/nmdm.c
476
nmdmstart(struct tty *tp)
sys/dev/misc/nmdm/nmdm.c
494
wakeup_other(struct tty *tp, int flag)
sys/dev/misc/nmdm/nmdm.c
512
nmdmstop(struct tty *tp, int flush)
sys/dev/misc/nmdm/nmdm.c
53
static void nmdmstart (struct tty *tp);
sys/dev/misc/nmdm/nmdm.c
539
struct tty *tp = dev->si_tty;
sys/dev/misc/nmdm/nmdm.c
54
static void nmdmstop (struct tty *tp, int rw);
sys/dev/misc/nmdm/nmdm.c
540
struct tty *tp2;
sys/dev/misc/nmdm/nmdm.c
55
static void wakeup_other (struct tty *tp, int flag);
sys/dev/misc/nmdm/nmdm.c
79
struct tty nm_tty;
sys/dev/misc/snp/snp.c
123
static struct tty *snpdevtotty (cdev_t dev);
sys/dev/misc/snp/snp.c
130
snplclose(struct tty *tp, int flag)
sys/dev/misc/snp/snp.c
151
snplwrite(struct tty *tp, struct uio *uio, int flag)
sys/dev/misc/snp/snp.c
192
static struct tty *
sys/dev/misc/snp/snp.c
211
struct tty *tp;
sys/dev/misc/snp/snp.c
258
struct tty *tp;
sys/dev/misc/snp/snp.c
448
struct tty *tp;
sys/dev/misc/snp/snp.c
532
struct tty *tp, *tpo;
sys/dev/misc/snp/snp.c
634
struct tty *tp = snp->snp_tty;
sys/dev/misc/snp/snp.c
675
struct tty *tp = snp->snp_tty;
sys/dev/misc/snp/snp.c
79
struct tty *snp_tty; /* Target tty pointer. */
sys/dev/misc/syscons/schistory.c
312
sc_hist_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag)
sys/dev/misc/syscons/scmouse.c
620
sc_mouse_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag)
sys/dev/misc/syscons/scterm-dumb.c
107
dumb_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data,
sys/dev/misc/syscons/scterm-dumb.c
141
dumb_input(scr_stat *scp, int c, struct tty *tp)
sys/dev/misc/syscons/scterm-sc.c
678
scterm_ioctl(scr_stat *scp, struct tty *tp, u_long cmd, caddr_t data,
sys/dev/misc/syscons/scterm-sc.c
749
scterm_input(scr_stat *scp, int c, struct tty *tp)
sys/dev/misc/syscons/scvidctl.c
187
sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode)
sys/dev/misc/syscons/scvidctl.c
263
sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
sys/dev/misc/syscons/scvidctl.c
426
sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag)
sys/dev/misc/syscons/scvidctl.c
55
sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize,
sys/dev/misc/syscons/scvidctl.c
861
struct tty *tp;
sys/dev/misc/syscons/syscons.c
114
static struct tty *sc_console_tty;
sys/dev/misc/syscons/syscons.c
1778
scstart(struct tty *tp)
sys/dev/misc/syscons/syscons.c
180
static int scparam(struct tty *tp, struct termios *t);
sys/dev/misc/syscons/syscons.c
181
static void scstart(struct tty *tp);
sys/dev/misc/syscons/syscons.c
1893
struct tty *tp;
sys/dev/misc/syscons/syscons.c
2778
struct tty *tp;
sys/dev/misc/syscons/syscons.c
3501
kfree(sc->tty, M_SYSCONS);
sys/dev/misc/syscons/syscons.c
3792
struct tty *tp;
sys/dev/misc/syscons/syscons.c
4026
struct tty *tp = VIRTUAL_TTY(sc, sc->first_vty + i);
sys/dev/misc/syscons/syscons.c
4041
struct tty *tp = VIRTUAL_TTY(sc, sc->first_vty + i);
sys/dev/misc/syscons/syscons.c
4300
struct tty *tp;
sys/dev/misc/syscons/syscons.c
711
struct tty *tp;
sys/dev/misc/syscons/syscons.c
806
struct tty *tp = dev->si_tty;
sys/dev/misc/syscons/syscons.c
872
struct tty *cur_tty;
sys/dev/misc/syscons/syscons.c
959
scparam(struct tty *tp, struct termios *t)
sys/dev/misc/syscons/syscons.c
979
struct tty *tp;
sys/dev/misc/syscons/syscons.h
171
struct tty;
sys/dev/misc/syscons/syscons.h
363
typedef int sc_term_ioctl_t(scr_stat *scp, struct tty *tp, u_long cmd,
sys/dev/misc/syscons/syscons.h
373
typedef int sc_term_input_t(scr_stat *scp, int c, struct tty *tp);
sys/dev/misc/syscons/syscons.h
555
int sc_hist_ioctl(struct tty *tp, u_long cmd, caddr_t data,
sys/dev/misc/syscons/syscons.h
578
int sc_mouse_ioctl(struct tty *tp, u_long cmd, caddr_t data,
sys/dev/misc/syscons/syscons.h
583
int sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode,
sys/dev/misc/syscons/syscons.h
585
int sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode);
sys/dev/misc/syscons/syscons.h
586
int sc_set_pixel_mode(scr_stat *scp, struct tty *tp,
sys/dev/misc/syscons/syscons.h
588
int sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data,
sys/dev/raid/vinum/vinumconfig.c
87
struct tty *tty;
sys/dev/serial/sio/sio.c
1265
struct tty *tp;
sys/dev/serial/sio/sio.c
1455
struct tty *tp;
sys/dev/serial/sio/sio.c
1490
struct tty *tp;
sys/dev/serial/sio/sio.c
163
static int comparam (struct tty *tp, struct termios *t);
sys/dev/serial/sio/sio.c
168
static void comstart (struct tty *tp);
sys/dev/serial/sio/sio.c
1686
struct tty *tp;
sys/dev/serial/sio/sio.c
169
static void comstop (struct tty *tp, int rw);
sys/dev/serial/sio/sio.c
171
static void disc_optim (struct tty *tp, struct termios *t,
sys/dev/serial/sio/sio.c
2024
struct tty *tp;
sys/dev/serial/sio/sio.c
2188
struct tty *tp;
sys/dev/serial/sio/sio.c
2253
comparam(struct tty *tp, struct termios *t)
sys/dev/serial/sio/sio.c
2454
struct tty *tp;
sys/dev/serial/sio/sio.c
2511
comstart(struct tty *tp)
sys/dev/serial/sio/sio.c
2600
comstop(struct tty *tp, int rw)
sys/dev/serial/sio/sio.c
2804
disc_optim(struct tty *tp, struct termios *t, struct com_s *com)
sys/dev/serial/sio/sio.c
292
struct tty *tp;
sys/dev/serial/sio/sio_private.h
133
struct tty *tp; /* cross reference */
sys/kern/kern_proc.c
2198
SYSCTL_KERN_PROC_ALLFLAGS(KERN_PROC_TTY, tty);
sys/kern/kern_proc.c
899
struct tty *tp;
sys/kern/subr_prf.c
155
pca.tty = p->p_session->s_ttyp;
sys/kern/subr_prf.c
189
struct tty *tp = NULL;
sys/kern/subr_prf.c
200
pca.tty = tp;
sys/kern/subr_prf.c
215
ttyprintf(struct tty *tp, const char *fmt, ...)
sys/kern/subr_prf.c
222
pca.tty = tp;
sys/kern/subr_prf.c
241
pca.tty = NULL;
sys/kern/subr_prf.c
315
pca.tty = NULL;
sys/kern/subr_prf.c
335
pca.tty = NULL;
sys/kern/subr_prf.c
392
struct tty *tp = ap->tty;
sys/kern/subr_prf.c
86
struct tty *tty;
sys/kern/subr_prf.c
919
struct tty *tp;
sys/kern/subr_prf.c
96
struct tty *constty; /* pointer to console "window" tty */
sys/kern/tty.c
108
static int ttnread (struct tty *tp);
sys/kern/tty.c
109
static void ttyecho (int c, struct tty *tp);
sys/kern/tty.c
110
static int ttyoutput (int c, struct tty *tp);
sys/kern/tty.c
111
static void ttypend (struct tty *tp);
sys/kern/tty.c
112
static void ttyretype (struct tty *tp);
sys/kern/tty.c
113
static void ttyrub (int c, struct tty *tp);
sys/kern/tty.c
114
static void ttyrubo (struct tty *tp, int cnt);
sys/kern/tty.c
115
static void ttyunblock (struct tty *tp);
sys/kern/tty.c
116
static int ttywflush (struct tty *tp);
sys/kern/tty.c
1279
struct tty *tp = dev->si_tty;
sys/kern/tty.c
1309
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty.c
1319
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty.c
1335
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty.c
1345
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty.c
1364
ttnread(struct tty *tp)
sys/kern/tty.c
1384
ttywait(struct tty *tp)
sys/kern/tty.c
1418
ttywflush(struct tty *tp)
sys/kern/tty.c
1431
ttyflush(struct tty *tp, int rw)
sys/kern/tty.c
1507
ttychars(struct tty *tp)
sys/kern/tty.c
1520
ttyblock(struct tty *tp)
sys/kern/tty.c
1537
ttyunblock(struct tty *tp)
sys/kern/tty.c
1549
ttstart(struct tty *tp)
sys/kern/tty.c
1562
ttylclose(struct tty *tp, int flag)
sys/kern/tty.c
1572
ttyhold(struct tty *tp)
sys/kern/tty.c
1580
ttyunhold(struct tty *tp)
sys/kern/tty.c
1596
ttymodem(struct tty *tp, int flag)
sys/kern/tty.c
1648
ttypend(struct tty *tp)
sys/kern/tty.c
1676
ttread(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
1953
ttycheckoutq(struct tty *tp, int wait)
sys/kern/tty.c
1988
ttwrite(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty.c
214
static TAILQ_HEAD(, tty) tty_list = TAILQ_HEAD_INITIALIZER(tty_list);
sys/kern/tty.c
2186
ttyrub(int c, struct tty *tp)
sys/kern/tty.c
220
ttyopen(cdev_t device, struct tty *tp)
sys/kern/tty.c
2280
ttyrubo(struct tty *tp, int cnt)
sys/kern/tty.c
2297
ttyretype(struct tty *tp)
sys/kern/tty.c
2335
ttyecho(int c, struct tty *tp)
sys/kern/tty.c
2362
ttwakeup(struct tty *tp)
sys/kern/tty.c
2376
ttwwakeup(struct tty *tp)
sys/kern/tty.c
2421
ttsetwater(struct tty *tp)
sys/kern/tty.c
247
ttyclose(struct tty *tp)
sys/kern/tty.c
2500
ttyinfo(struct tty *tp)
sys/kern/tty.c
2771
tputchar(int c, struct tty *tp)
sys/kern/tty.c
279
ttyclearsession(struct tty *tp)
sys/kern/tty.c
2794
ttysleep(struct tty *tp, void *chan, int slpflags, char *wmesg, int timo)
sys/kern/tty.c
2817
struct tty *tp;
sys/kern/tty.c
2840
struct tty *
sys/kern/tty.c
2841
ttymalloc(struct tty **tpp)
sys/kern/tty.c
2843
struct tty *tp;
sys/kern/tty.c
2864
ttyunregister(struct tty *tp)
sys/kern/tty.c
2875
ttyinit(struct tty *tp)
sys/kern/tty.c
2881
ttyregister(struct tty *tp)
sys/kern/tty.c
2895
struct tty *tp;
sys/kern/tty.c
2896
struct tty t;
sys/kern/tty.c
2897
struct tty marker;
sys/kern/tty.c
2927
nottystop(struct tty *tp, int rw)
sys/kern/tty.c
2935
struct tty *tp;
sys/kern/tty.c
2951
struct tty *tp;
sys/kern/tty.c
398
ttyinput(int c, struct tty *tp)
sys/kern/tty.c
745
ttyoutput(int c, struct tty *tp)
sys/kern/tty.c
853
ttioctl(struct tty *tp, u_long cmd, void *data, int flag)
sys/kern/tty.c
859
struct tty *otp;
sys/kern/tty_conf.c
133
l_noopen(cdev_t dev, struct tty *tp)
sys/kern/tty_conf.c
140
l_noclose(struct tty *tp, int flag)
sys/kern/tty_conf.c
147
l_noread(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty_conf.c
154
l_nowrite(struct tty *tp, struct uio *uio, int flag)
sys/kern/tty_conf.c
161
l_norint(int c, struct tty *tp)
sys/kern/tty_conf.c
168
l_nostart(struct tty *tp)
sys/kern/tty_conf.c
179
l_nullioctl(struct tty *tp, u_long cmd, char *data, int flags,
sys/kern/tty_cons.c
398
struct tty *cn_tp;
sys/kern/tty_pty.c
1084
struct tty *tp = dev->si_tty;
sys/kern/tty_pty.c
136
struct tty pt_tty;
sys/kern/tty_pty.c
304
struct tty *tp;
sys/kern/tty_pty.c
394
struct tty *tp;
sys/kern/tty_pty.c
433
struct tty *tp = dev->si_tty;
sys/kern/tty_pty.c
501
struct tty *tp;
sys/kern/tty_pty.c
521
ptsstart(struct tty *tp)
sys/kern/tty_pty.c
547
ptcwakeup(struct tty *tp, int flag)
sys/kern/tty_pty.c
563
struct tty *tp;
sys/kern/tty_pty.c
640
struct tty *tp;
sys/kern/tty_pty.c
65
static void ptsstart (struct tty *tp);
sys/kern/tty_pty.c
66
static void ptsstop (struct tty *tp, int rw);
sys/kern/tty_pty.c
67
static void ptsunhold (struct tty *tp);
sys/kern/tty_pty.c
68
static void ptcwakeup (struct tty *tp, int flag);
sys/kern/tty_pty.c
695
struct tty *tp = dev->si_tty;
sys/kern/tty_pty.c
780
ptsstop(struct tty *tp, int flush)
sys/kern/tty_pty.c
814
ptsunhold(struct tty *tp)
sys/kern/tty_pty.c
840
struct tty *tp = dev->si_tty;
sys/kern/tty_pty.c
866
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty_pty.c
897
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty_pty.c
929
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty_pty.c
937
struct tty *tp = ((cdev_t)kn->kn_hook)->si_tty;
sys/kern/tty_pty.c
949
struct tty *tp = dev->si_tty;
sys/net/sl/if_sl.c
1016
struct tty *tp = sc->sc_ttyp;
sys/net/sl/if_sl.c
1043
struct tty *tp = sc->sc_ttyp;
sys/net/sl/if_sl.c
182
static int slclose (struct tty *,int);
sys/net/sl/if_sl.c
183
static int slinput (int, struct tty *);
sys/net/sl/if_sl.c
185
static int sltioctl (struct tty *, u_long, caddr_t, int, struct ucred *);
sys/net/sl/if_sl.c
186
static int slopen (cdev_t, struct tty *);
sys/net/sl/if_sl.c
189
static int slstart (struct tty *);
sys/net/sl/if_sl.c
245
slopen(cdev_t dev, struct tty *tp)
sys/net/sl/if_sl.c
303
slclose(struct tty *tp, int flag)
sys/net/sl/if_sl.c
346
sltioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct ucred *cred)
sys/net/sl/if_sl.c
529
slstart(struct tty *tp)
sys/net/sl/if_sl.c
759
slinput(int c, struct tty *tp)
sys/net/sl/if_sl.c
996
struct tty *tp;
sys/net/sl/if_slvar.h
51
struct tty *sc_ttyp; /* pointer to tty structure */
sys/netgraph/tty/ng_tty.c
120
static int ngt_open(cdev_t dev, struct tty *tp);
sys/netgraph/tty/ng_tty.c
121
static int ngt_close(struct tty *tp, int flag);
sys/netgraph/tty/ng_tty.c
122
static int ngt_read(struct tty *tp, struct uio *uio, int flag);
sys/netgraph/tty/ng_tty.c
123
static int ngt_write(struct tty *tp, struct uio *uio, int flag);
sys/netgraph/tty/ng_tty.c
124
static int ngt_tioctl(struct tty *tp,
sys/netgraph/tty/ng_tty.c
126
static int ngt_input(int c, struct tty *tp);
sys/netgraph/tty/ng_tty.c
127
static int ngt_start(struct tty *tp);
sys/netgraph/tty/ng_tty.c
172
NETGRAPH_INIT(tty, &typestruct);
sys/netgraph/tty/ng_tty.c
187
ngt_open(cdev_t dev, struct tty *tp)
sys/netgraph/tty/ng_tty.c
257
ngt_close(struct tty *tp, int flag)
sys/netgraph/tty/ng_tty.c
284
ngt_read(struct tty *tp, struct uio *uio, int flag)
sys/netgraph/tty/ng_tty.c
293
ngt_write(struct tty *tp, struct uio *uio, int flag)
sys/netgraph/tty/ng_tty.c
302
ngt_tioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct ucred *cred)
sys/netgraph/tty/ng_tty.c
338
ngt_input(int c, struct tty *tp)
sys/netgraph/tty/ng_tty.c
406
ngt_start(struct tty *tp)
sys/netgraph/tty/ng_tty.c
470
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
503
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
525
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
546
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
572
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
604
struct tty *tp = sc->tp;
sys/netgraph/tty/ng_tty.c
86
struct tty *tp; /* Terminal device */
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
150
ng_h4_open(struct cdev *dev, struct tty *tp)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
239
ng_h4_close(struct tty *tp, int flag)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
270
ng_h4_read(struct tty *tp, struct uio *uio, int flag)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
280
ng_h4_write(struct tty *tp, struct uio *uio, int flag)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
290
ng_h4_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag,
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
337
ng_h4_input(int c, struct tty *tp)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
573
ng_h4_start(struct tty *tp)
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
86
static int ng_h4_open (struct cdev *, struct tty *);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
87
static int ng_h4_close (struct tty *, int);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
88
static int ng_h4_read (struct tty *, struct uio *, int);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
89
static int ng_h4_write (struct tty *, struct uio *, int);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
90
static int ng_h4_input (int, struct tty *);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
91
static int ng_h4_start (struct tty *);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
92
static int ng_h4_ioctl (struct tty *, u_long, caddr_t,
sys/netgraph7/bluetooth/drivers/h4/ng_h4_var.h
71
struct tty *tp; /* Terminal device */
sys/netgraph7/tty/ng_tty.c
103
static int ngt_open(struct cdev *dev, struct tty *tp);
sys/netgraph7/tty/ng_tty.c
104
static int ngt_close(struct tty *tp, int flag);
sys/netgraph7/tty/ng_tty.c
105
static int ngt_read(struct tty *tp, struct uio *uio, int flag);
sys/netgraph7/tty/ng_tty.c
106
static int ngt_write(struct tty *tp, struct uio *uio, int flag);
sys/netgraph7/tty/ng_tty.c
107
static int ngt_tioctl(struct tty *tp,
sys/netgraph7/tty/ng_tty.c
109
static int ngt_input(int c, struct tty *tp);
sys/netgraph7/tty/ng_tty.c
110
static int ngt_start(struct tty *tp);
sys/netgraph7/tty/ng_tty.c
152
NETGRAPH_INIT(tty, &typestruct);
sys/netgraph7/tty/ng_tty.c
181
ngt_open(struct cdev *dev, struct tty *tp)
sys/netgraph7/tty/ng_tty.c
244
ngt_close(struct tty *tp, int flag)
sys/netgraph7/tty/ng_tty.c
266
ngt_read(struct tty *tp, struct uio *uio, int flag)
sys/netgraph7/tty/ng_tty.c
275
ngt_write(struct tty *tp, struct uio *uio, int flag)
sys/netgraph7/tty/ng_tty.c
284
ngt_tioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct ucred *cred)
sys/netgraph7/tty/ng_tty.c
325
ngt_input(int c, struct tty *tp)
sys/netgraph7/tty/ng_tty.c
412
ngt_start(struct tty *tp)
sys/netgraph7/tty/ng_tty.c
467
struct tty *tp = sc->tp;
sys/netgraph7/tty/ng_tty.c
497
struct tty *tp = sc->tp;
sys/netgraph7/tty/ng_tty.c
536
struct tty *tp = sc->tp;
sys/netgraph7/tty/ng_tty.c
557
struct tty *tp = sc->tp;
sys/netgraph7/tty/ng_tty.c
581
struct tty *tp = sc->tp;
sys/netgraph7/tty/ng_tty.c
87
struct tty *tp; /* Terminal device */
sys/platform/vkernel64/platform/console.c
131
struct tty *tp;
sys/platform/vkernel64/platform/console.c
145
struct tty *tp;
sys/platform/vkernel64/platform/console.c
167
vcons_tty_param(struct tty *tp, struct termios *tio)
sys/platform/vkernel64/platform/console.c
178
vcons_tty_start(struct tty *tp)
sys/platform/vkernel64/platform/console.c
298
struct tty *tp;
sys/platform/vkernel64/platform/console.c
55
static struct tty *kqueue_console_tty;
sys/platform/vkernel64/platform/console.c
64
static int vcons_tty_param(struct tty *tp, struct termios *tio);
sys/platform/vkernel64/platform/console.c
65
static void vcons_tty_start(struct tty *tp);
sys/platform/vkernel64/platform/console.c
86
struct tty *tp;
sys/sys/conf.h
141
typedef int l_open_t (struct cdev *dev, struct tty *tp);
sys/sys/conf.h
142
typedef int l_close_t (struct tty *tp, int flag);
sys/sys/conf.h
143
typedef int l_read_t (struct tty *tp, struct uio *uio, int flag);
sys/sys/conf.h
144
typedef int l_write_t (struct tty *tp, struct uio *uio, int flag);
sys/sys/conf.h
145
typedef int l_ioctl_t (struct tty *tp, u_long cmd, caddr_t data, int flag,
sys/sys/conf.h
147
typedef int l_rint_t (int c, struct tty *tp);
sys/sys/conf.h
148
typedef int l_start_t (struct tty *tp);
sys/sys/conf.h
149
typedef int l_modem_t (struct tty *tp, int flag);
sys/sys/conf.h
61
struct tty;
sys/sys/conf.h
88
struct tty *__sit_tty;
sys/sys/cons.h
67
struct tty *cn_tp; /* tty structure for console device */
sys/sys/proc.h
100
struct tty *s_ttyp; /* Controlling terminal. */
sys/sys/systm.h
144
struct tty;
sys/sys/systm.h
232
int ttyprintf (struct tty *, const char *, ...) __printflike(2, 3);
sys/sys/tty.h
112
TAILQ_ENTRY(tty) t_list; /* Global chain of ttys for pstat(8) */
sys/sys/tty.h
238
extern struct tty *constty; /* Temporary virtual console. */
sys/sys/tty.h
248
void nottystop (struct tty *tp, int rw);
sys/sys/tty.h
252
int tputchar (int c, struct tty *tp);
sys/sys/tty.h
253
int ttcompat (struct tty *tp, u_long com, caddr_t data, int flag);
sys/sys/tty.h
254
int ttioctl (struct tty *tp, u_long com, void *data, int flag);
sys/sys/tty.h
255
int ttread (struct tty *tp, struct uio *uio, int flag);
sys/sys/tty.h
256
int ttsetcompat (struct tty *tp, u_long *com, caddr_t data,
sys/sys/tty.h
258
void ttsetwater (struct tty *tp);
sys/sys/tty.h
260
int ttstart (struct tty *tp);
sys/sys/tty.h
261
void ttwakeup (struct tty *tp);
sys/sys/tty.h
262
int ttwrite (struct tty *tp, struct uio *uio, int flag);
sys/sys/tty.h
263
void ttwwakeup (struct tty *tp);
sys/sys/tty.h
264
void ttyblock (struct tty *tp);
sys/sys/tty.h
265
void ttychars (struct tty *tp);
sys/sys/tty.h
266
int ttycheckoutq (struct tty *tp, int wait);
sys/sys/tty.h
267
int ttyclose (struct tty *tp);
sys/sys/tty.h
268
void ttyclearsession (struct tty *tp);
sys/sys/tty.h
270
void ttyflush (struct tty *tp, int rw);
sys/sys/tty.h
271
void ttyhold (struct tty *tp);
sys/sys/tty.h
272
void ttyunhold (struct tty *tp);
sys/sys/tty.h
273
void ttyinfo (struct tty *tp);
sys/sys/tty.h
274
int ttyinput (int c, struct tty *tp);
sys/sys/tty.h
275
int ttylclose (struct tty *tp, int flag);
sys/sys/tty.h
276
struct tty *ttymalloc (struct tty **tpp);
sys/sys/tty.h
277
int ttymodem (struct tty *tp, int flag);
sys/sys/tty.h
278
int ttyopen (cdev_t device, struct tty *tp);
sys/sys/tty.h
281
void ttyregister (struct tty *tp);
sys/sys/tty.h
282
void ttyinit (struct tty *tp);
sys/sys/tty.h
283
void ttyunregister (struct tty *tp);
sys/sys/tty.h
284
int ttysleep (struct tty *tp, void *chan, int slpflags, char *wmesg,
sys/sys/tty.h
287
int ttywait (struct tty *tp);
sys/sys/tty.h
94
void (*t_oproc) (struct tty *);
sys/sys/tty.h
96
void (*t_stop) (struct tty *, int);
sys/sys/tty.h
98
int (*t_param) (struct tty *, struct termios *);
sys/sys/tty.h
99
void (*t_unhold) (struct tty *); /* callback to pty after unhold */
sys/vfs/devfs/devfs_vnops.c
1032
struct tty *tp;
sys/vfs/procfs/procfs_status.c
69
struct tty *tp;
usr.bin/finger/finger.h
61
char tty[_UTX_LINESIZE + 1]; /* null terminated tty line */
usr.bin/finger/lprint.c
165
if ((len = strlen(w->tty)) > maxlen)
usr.bin/finger/lprint.c
174
cpr = printf("On since %s on %s", t, w->tty);
usr.bin/finger/lprint.c
183
maxlen - (int)strlen(w->tty) + 1, ",");
usr.bin/finger/lprint.c
213
cpr = printf("Last login %s on %s", t, w->tty);
usr.bin/finger/sprint.c
107
if (*w->tty)
usr.bin/finger/sprint.c
109
(strncmp(w->tty, "tty", 3)
usr.bin/finger/sprint.c
110
&& strncmp(w->tty, "cua", 3))
usr.bin/finger/sprint.c
111
? w->tty : w->tty + 3);
usr.bin/finger/util.c
123
strcmp(w->tty, ll.ll_line) == 0)
usr.bin/finger/util.c
129
strlcpy(w->tty, ll.ll_line, sizeof(w->tty));
usr.bin/finger/util.c
143
strlcpy(w->tty, ep->line, sizeof(w->tty));
usr.bin/finger/util.c
290
(void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
usr.bin/killall/killall.c
125
char *tty = NULL;
usr.bin/killall/killall.c
182
tty = *av;
usr.bin/killall/killall.c
251
if (user == NULL && tty == NULL && cmd == NULL &&
usr.bin/killall/killall.c
257
tty = ttyname(0);
usr.bin/killall/killall.c
258
if (tty)
usr.bin/killall/killall.c
259
tty = strdup(tty);
usr.bin/killall/killall.c
262
if (tty) {
usr.bin/killall/killall.c
263
if (strncmp(tty, "/dev/", 5) == 0)
usr.bin/killall/killall.c
264
snprintf(buf, sizeof(buf), "%s", tty);
usr.bin/killall/killall.c
265
else if (strncmp(tty, "tty", 3) == 0)
usr.bin/killall/killall.c
266
snprintf(buf, sizeof(buf), "/dev/%s", tty);
usr.bin/killall/killall.c
267
else if (isdigit(tty[0]))
usr.bin/killall/killall.c
268
snprintf(buf, sizeof(buf), "/dev/pts/%s", tty);
usr.bin/killall/killall.c
270
snprintf(buf, sizeof(buf), "/dev/tty%s", tty);
usr.bin/killall/killall.c
308
if (tty && mib[2] == KERN_PROC_ALL) {
usr.bin/killall/killall.c
342
if (Tflag && tty)
usr.bin/killall/killall.c
366
if (tty) {
usr.bin/last/last.c
223
addtty(const char *tty)
usr.bin/last/last.c
231
memmove(cur->tty, tty, sizeof(cur->tty));
usr.bin/last/last.c
408
if (!strncmp(T->tty, bp->ut_line, UTX_LINESIZE))
usr.bin/last/last.c
87
char tty[128]; /* terminal name */
usr.bin/lock/lock.c
125
if (tcgetattr(STDIN_FILENO, &tty)) /* get information for header */
usr.bin/lock/lock.c
139
ntty = tty; ntty.c_lflag &= ~ECHO;
usr.bin/lock/lock.c
156
tcsetattr(STDIN_FILENO, TCSADRAIN|TCSASOFT, &tty);
usr.bin/lock/lock.c
181
tcsetattr(0, TCSADRAIN|TCSASOFT, &tty);
usr.bin/lock/lock.c
265
tcsetattr(STDIN_FILENO, TCSADRAIN|TCSASOFT, &tty);
usr.bin/lock/lock.c
275
tcsetattr(STDIN_FILENO, TCSADRAIN|TCSASOFT, &tty);
usr.bin/lock/lock.c
70
static struct termios tty, ntty;
usr.bin/login/login.c
136
static char *tty;
usr.bin/login/login.c
239
tty = ttyn + sizeof(_PATH_DEV) -1;
usr.bin/login/login.c
241
tty = ttyn;
usr.bin/login/login.c
292
pam_err = pam_set_item(pamh, PAM_TTY, tty);
usr.bin/login/login.c
433
login_fbtab(tty, pwd->pw_uid, pwd->pw_gid);
usr.bin/login/login.c
461
if (hflag && isdialuptty(tty))
usr.bin/login/login.c
462
syslog(LOG_INFO, "DIALUP %s, %s", tty, pwd->pw_name);
usr.bin/login/login.c
471
hostname, tty, pwd->pw_name);
usr.bin/login/login.c
474
tty, pwd->pw_name);
usr.bin/login/login.c
484
username, tty, hostname);
usr.bin/login/login.c
487
username, tty);
usr.bin/login/login.c
576
if (term == NULL && (tp = stypeof(tty)) != NULL) {
usr.bin/login/login.c
899
failures, failures > 1 ? "S" : "", tty);
usr.bin/login/login.c
902
failures, failures > 1 ? "S" : "", tty, name);
usr.bin/login/login.c
928
pwd->pw_name, rtype, hostname, tty);
usr.bin/login/login.c
931
pwd->pw_name, rtype, tty);
usr.bin/login/login_fbtab.c
110
if (strcmp(devname + 5, tty) == 0) {
usr.bin/login/login_fbtab.c
82
login_fbtab(char *tty, uid_t uid, gid_t gid)
usr.bin/mesg/mesg.c
54
char *tty;
usr.bin/mesg/mesg.c
66
if ((tty = ttyname(STDIN_FILENO)) == NULL &&
usr.bin/mesg/mesg.c
67
(tty = ttyname(STDOUT_FILENO)) == NULL &&
usr.bin/mesg/mesg.c
68
(tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/mesg/mesg.c
70
if (stat(tty, &sb) < 0)
usr.bin/mesg/mesg.c
71
err(2, "%s", tty);
usr.bin/mesg/mesg.c
84
if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
usr.bin/mesg/mesg.c
85
err(2, "%s", tty);
usr.bin/mesg/mesg.c
88
if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
usr.bin/mesg/mesg.c
89
err(2, "%s", tty);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
127
char *ep, *tty;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
134
tty = NULL;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
184
asprintf(&tty, "%s%s", _PATH_DEV, optarg);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
186
tty = optarg;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
208
if (tty == NULL) {
usr.bin/rfcomm_sppd/rfcomm_sppd.c
212
tty_in = open_tty(tty);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
227
if (tty == NULL) {
usr.bin/rfcomm_sppd/rfcomm_sppd.c
254
syslog(LOG_INFO, "Starting on %s...", (tty ? tty : "stdio"));
usr.bin/rfcomm_sppd/rfcomm_sppd.c
277
syslog(LOG_INFO, "Completed on %s", (tty ? tty : "stdio"));
usr.bin/rfcomm_sppd/rfcomm_sppd.c
282
open_tty(const char *tty)
usr.bin/rfcomm_sppd/rfcomm_sppd.c
294
if (strlen(tty) >= sizeof(pty))
usr.bin/rfcomm_sppd/rfcomm_sppd.c
297
strlcpy(pty, tty, sizeof(pty));
usr.bin/rfcomm_sppd/rfcomm_sppd.c
300
errx(EXIT_FAILURE, "%s: invalid tty", tty);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
303
if (strcmp(pty, tty) == 0)
usr.bin/rfcomm_sppd/rfcomm_sppd.c
304
errx(EXIT_FAILURE, "Master and slave tty are the same (%s)", tty);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
318
(void)chown(tty, getuid(), ttygid);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
319
(void)chmod(tty, S_IRUSR | S_IWUSR | S_IWGRP);
usr.bin/rfcomm_sppd/rfcomm_sppd.c
320
(void)revoke(tty);
usr.bin/rwall/rwall.c
135
const char *whom, *tty;
usr.bin/rwall/rwall.c
159
tty = ttyname(STDERR_FILENO);
usr.bin/rwall/rwall.c
160
if (tty == NULL)
usr.bin/rwall/rwall.c
161
tty = "notty";
usr.bin/rwall/rwall.c
162
fprintf(fp, " (%s) at %d:%02d ...\n", tty,
usr.bin/talk/init_disp.c
52
char *tty;
usr.bin/talk/init_disp.c
55
if ((tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/talk/init_disp.c
57
if (stat(tty, &sb) < 0)
usr.bin/talk/init_disp.c
58
err(1, "%s", tty);
usr.bin/unzip/unzip.c
1021
tty = 1;
usr.bin/unzip/unzip.c
509
if (tty && (n % 4) == 0)
usr.bin/unzip/unzip.c
651
if (tty)
usr.bin/unzip/unzip.c
78
static int tty;
usr.bin/wall/wall.c
175
const char *tty;
usr.bin/wall/wall.c
185
tty = ttyname(STDERR_FILENO);
usr.bin/wall/wall.c
186
if (tty == NULL)
usr.bin/wall/wall.c
187
tty = "no tty";
usr.bin/wall/wall.c
208
" (%s) at %d:%02d %s...", tty,
usr.bin/window/wwpty.c
47
int result, tty;
usr.bin/window/wwpty.c
49
result = openpty(&w->ww_pty, &tty, w->ww_ttyname, NULL, NULL);
usr.bin/write/write.c
128
utmpx_chk(const char *user, const char *tty)
usr.bin/write/write.c
136
strcmp(tty, ep->line) == 0) {
usr.bin/write/write.c
156
search_utmpx(const char *user, char *tty, size_t ttyl, const char *mytty, uid_t myuid)
usr.bin/write/write.c
181
strlcpy(tty, ep->line, ttyl);
usr.bin/write/write.c
189
strlcpy(tty, mytty, ttyl);
usr.bin/write/write.c
194
warnx("%s is logged in more than once; writing to %s", user, tty);
usr.bin/write/write.c
203
term_chk(const char *tty, int *msgsokP, time_t *atimeP, int showerror)
usr.bin/write/write.c
208
snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
usr.bin/write/write.c
223
do_write(const char *tty, const char *mytty, uid_t myuid, int *mymsgok)
usr.bin/write/write.c
239
snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
usr.bin/write/write.c
68
char tty[MAXPATHLEN], *mytty;
usr.bin/write/write.c
95
search_utmpx(argv[1], tty, sizeof tty, mytty, myuid);
usr.bin/write/write.c
96
do_write(tty, mytty, myuid, &mymsgok);
usr.sbin/fdwrite/fdwrite.c
115
tty = fopen(_PATH_TTY,"r+");
usr.sbin/fdwrite/fdwrite.c
116
if(!tty)
usr.sbin/fdwrite/fdwrite.c
118
setbuf(tty,0);
usr.sbin/fdwrite/fdwrite.c
123
fprintf(tty,
usr.sbin/fdwrite/fdwrite.c
127
i = getc(tty);
usr.sbin/fdwrite/fdwrite.c
77
FILE *tty;
usr.sbin/moused/moused.c
2468
struct termios tty;
usr.sbin/moused/moused.c
2471
if (tcgetattr(rodent.mfd, &tty) < 0)
usr.sbin/moused/moused.c
2477
tty.c_iflag = IGNBRK | IGNPAR;
usr.sbin/moused/moused.c
2478
tty.c_oflag = 0;
usr.sbin/moused/moused.c
2479
tty.c_lflag = 0;
usr.sbin/moused/moused.c
2480
tty.c_cflag = (tcflag_t)cflag;
usr.sbin/moused/moused.c
2481
tty.c_cc[VTIME] = 0;
usr.sbin/moused/moused.c
2482
tty.c_cc[VMIN] = 1;
usr.sbin/moused/moused.c
2487
cfsetispeed(&tty, B9600);
usr.sbin/moused/moused.c
2488
cfsetospeed(&tty, B9600);
usr.sbin/moused/moused.c
2491
cfsetispeed(&tty, B4800);
usr.sbin/moused/moused.c
2492
cfsetospeed(&tty, B4800);
usr.sbin/moused/moused.c
2495
cfsetispeed(&tty, B2400);
usr.sbin/moused/moused.c
2496
cfsetospeed(&tty, B2400);
usr.sbin/moused/moused.c
2500
cfsetispeed(&tty, B1200);
usr.sbin/moused/moused.c
2501
cfsetospeed(&tty, B1200);
usr.sbin/moused/moused.c
2504
if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
usr.sbin/moused/moused.c
2514
cfsetispeed(&tty, B9600);
usr.sbin/moused/moused.c
2515
cfsetospeed(&tty, B9600);
usr.sbin/moused/moused.c
2519
cfsetispeed(&tty, B4800);
usr.sbin/moused/moused.c
2520
cfsetospeed(&tty, B4800);
usr.sbin/moused/moused.c
2524
cfsetispeed(&tty, B2400);
usr.sbin/moused/moused.c
2525
cfsetospeed(&tty, B2400);
usr.sbin/moused/moused.c
2530
cfsetispeed(&tty, B1200);
usr.sbin/moused/moused.c
2531
cfsetospeed(&tty, B1200);
usr.sbin/moused/moused.c
2545
if (tcsetattr(rodent.mfd, TCSADRAIN, &tty) < 0)
usr.sbin/ppp/prompt.c
324
char *tty = ttyname(STDIN_FILENO);
usr.sbin/ppp/prompt.c
326
if (!tty) {
usr.sbin/ppp/prompt.c
336
strncpy(p->src.from, tty, sizeof p->src.from - 1);
usr.sbin/pstat/pstat.c
188
void ttyprt(struct tty *, int);
usr.sbin/pstat/pstat.c
189
void ttytype(struct tty *, const char *, int, int, int);
usr.sbin/pstat/pstat.c
707
struct tty *tty;
usr.sbin/pstat/pstat.c
708
struct tty ttyb[1000];
usr.sbin/pstat/pstat.c
721
if ((tty = malloc(ttyspace * sizeof(*tty))) == NULL)
usr.sbin/pstat/pstat.c
724
ttytype(tty, "rc", NL_RC_TTY, NL_NRC_TTY, 0);
usr.sbin/pstat/pstat.c
726
ttytype(tty, "cy", NL_CY_TTY, NL_NCY_TTY, 0);
usr.sbin/pstat/pstat.c
728
ttytype(tty, "si", NL_SI_TTY, NL_SI_NPORTS, 1);
usr.sbin/pstat/pstat.c
729
free(tty);
usr.sbin/pstat/pstat.c
733
ttytype(struct tty *tty, const char *name, int type, int number, int indir)
usr.sbin/pstat/pstat.c
735
struct tty *tp;
usr.sbin/pstat/pstat.c
737
struct tty **ttyaddr;
usr.sbin/pstat/pstat.c
739
if (tty == NULL)
usr.sbin/pstat/pstat.c
745
if ((tty = realloc(tty, ttyspace * sizeof(*tty))) == NULL)
usr.sbin/pstat/pstat.c
750
KGET2(ttyaddr, tty, (ssize_t)(ntty * sizeof(struct tty)),
usr.sbin/pstat/pstat.c
753
KGET1(type, tty, (ssize_t)(ntty * sizeof(struct tty)),
usr.sbin/pstat/pstat.c
757
for (tp = tty; tp < &tty[ntty]; tp++)
usr.sbin/pstat/pstat.c
758
ttyprt(tp, tp - tty);
usr.sbin/pstat/pstat.c
816
ttyprt(struct tty *tp, int line)