Home
last modified time | relevance | path

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

12345678

/dragonfly/lib/libc/gen/
H A Dgetttyent.c61 tty += 5; in getttynam()
87 tty.ty_type = NULL; in getttyent()
92 return (&tty); in getttyent()
118 tty.ty_name = p; in getttyent()
119 tty.ty_status = 0; in getttyent()
120 tty.ty_window = NULL; in getttyent()
125 tty.ty_getty = tty.ty_type = NULL; in getttyent()
129 tty.ty_type = NULL; in getttyent()
168 tty.ty_comment = p; in getttyent()
170 tty.ty_comment = 0; in getttyent()
[all …]
/dragonfly/sys/sys/
H A Dtty.h73 struct tty { struct
94 void (*t_oproc) (struct tty *); argument
260 int ttstart (struct tty *tp);
261 void ttwakeup (struct tty *tp);
264 void ttyblock (struct tty *tp);
267 int ttyclose (struct tty *tp);
271 void ttyhold (struct tty *tp);
273 void ttyinfo (struct tty *tp);
276 struct tty *ttymalloc (struct tty **tpp);
282 void ttyinit (struct tty *tp);
[all …]
H A Dconf.h61 struct tty;
88 struct tty *__sit_tty;
141 typedef int l_open_t (struct cdev *dev, struct tty *tp);
142 typedef int l_close_t (struct tty *tp, int flag);
143 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag);
144 typedef int l_write_t (struct tty *tp, struct uio *uio, int flag);
145 typedef int l_ioctl_t (struct tty *tp, u_long cmd, caddr_t data, int flag,
147 typedef int l_rint_t (int c, struct tty *tp);
148 typedef int l_start_t (struct tty *tp);
149 typedef int l_modem_t (struct tty *tp, int flag);
/dragonfly/contrib/gdb-7/readline/
H A Drltty.c78 int tty; in set_winsize()
166 int tty; in get_tty_settings()
198 int tty; in set_tty_settings()
321 # define GETATTR(tty, tiop) (tcgetattr (tty, tiop)) argument
330 # define GETATTR(tty, tiop) (ioctl (tty, TCGETA, tiop)) argument
422 int tty; in _get_tty_settings()
455 int tty; in get_tty_settings()
473 int tty; in _set_tty_settings()
598 int tty; local
673 int tty; in rl_deprep_terminal() local
[all …]
H A Dinput.c169 int tty; in rl_gather_tyi() local
179 tty = fileno (rl_instream); in rl_gather_tyi()
184 FD_SET (tty, &readfds); in rl_gather_tyi()
185 FD_SET (tty, &exceptfds); in rl_gather_tyi()
203 tem = fcntl (tty, F_GETFL, 0); in rl_gather_tyi()
208 fcntl (tty, F_SETFL, tem); in rl_gather_tyi()
292 int tty; in _rl_input_available() local
294 tty = fileno (rl_instream); in _rl_input_available()
299 FD_SET (tty, &readfds); in _rl_input_available()
300 FD_SET (tty, &exceptfds); in _rl_input_available()
[all …]
/dragonfly/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c95 const char *user, *rhost, *tty; in pam_sm_open_session() local
123 tty = (const char *)vtty; in pam_sm_open_session()
125 if (tty == NULL) { in pam_sm_open_session()
132 tty = tty + strlen(_PATH_DEV); in pam_sm_open_session()
134 if (*tty == '\0') { in pam_sm_open_session()
166 const char *tty; in pam_sm_close_session() local
171 tty = (const char *)vtty; in pam_sm_close_session()
174 tty = tty + strlen(_PATH_DEV); in pam_sm_close_session()
176 if (*tty == '\0') in pam_sm_close_session()
183 __func__, tty); in pam_sm_close_session()
[all …]
/dragonfly/crypto/openssh/
H A Dsshpty.c87 pty_release(const char *tty) in pty_release() argument
90 if (chown(tty, (uid_t) 0, (gid_t) 0) == -1) in pty_release()
92 if (chmod(tty, (mode_t) 0666) == -1) in pty_release()
134 fd = open(tty, O_RDWR); in pty_make_controlling_tty()
185 if (stat(tty, &st) == -1) in pty_setowner()
186 fatal("stat(%.100s) failed: %.100s", tty, in pty_setowner()
190 ssh_selinux_setup_pty(pw->pw_name, tty); in pty_setowner()
194 if (chown(tty, pw->pw_uid, gid) == -1) { in pty_setowner()
198 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner()
202 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner()
[all …]
/dragonfly/usr.bin/mesg/
H A Dmesg.c54 char *tty; in main() local
66 if ((tty = ttyname(STDIN_FILENO)) == NULL && in main()
67 (tty = ttyname(STDOUT_FILENO)) == NULL && in main()
68 (tty = ttyname(STDERR_FILENO)) == NULL) in main()
70 if (stat(tty, &sb) < 0) in main()
71 err(2, "%s", tty); in main()
84 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) in main()
85 err(2, "%s", tty); in main()
88 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) in main()
89 err(2, "%s", tty); in main()
/dragonfly/contrib/tcsh-6/
H A Dsh.file.c180 tty_normal = tty; in back_to_col_1()
181 tty.c_iflag &= ~INLCR; in back_to_col_1()
182 tty.c_oflag &= ~ONLCR; in back_to_col_1()
196 tty_normal = tty; in back_to_col_1()
197 tty.sg_flags &= ~CRMOD; in back_to_col_1()
232 tty_normal = tty; in pushback()
259 tty_normal = tty; in pushback()
260 tty.sg_flags &= ~ECHO; in pushback()
384 struct termios tty; in retype() local
388 struct termio tty; in retype()
[all …]
/dragonfly/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c62 const void *tty; in pam_sm_acct_mgmt() local
77 pam_err = pam_get_item(pamh, PAM_TTY, &tty); in pam_sm_acct_mgmt()
81 PAM_LOG("Got TTY: %s", (const char *)tty); in pam_sm_acct_mgmt()
84 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) { in pam_sm_acct_mgmt()
86 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1; in pam_sm_acct_mgmt()
89 if (tty != NULL && (ty = getttynam(tty)) != NULL && in pam_sm_acct_mgmt()
/dragonfly/usr.bin/write/
H A Dwrite.c68 char tty[MAXPATHLEN], *mytty; in main() local
95 search_utmpx(argv[1], tty, sizeof tty, mytty, myuid); in main()
96 do_write(tty, mytty, myuid, &mymsgok); in main()
128 utmpx_chk(const char *user, const char *tty) in utmpx_chk() argument
136 strcmp(tty, ep->line) == 0) { in utmpx_chk()
181 strlcpy(tty, ep->line, ttyl); in search_utmpx()
189 strlcpy(tty, mytty, ttyl); in search_utmpx()
194 warnx("%s is logged in more than once; writing to %s", user, tty); in search_utmpx()
203 term_chk(const char *tty, int *msgsokP, time_t *atimeP, int showerror) in term_chk() argument
208 snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty); in term_chk()
[all …]
/dragonfly/usr.bin/rfcomm_sppd/
H A Drfcomm_sppd.c127 char *ep, *tty; in main() local
134 tty = NULL; in main()
186 tty = optarg; in main()
208 if (tty == NULL) { in main()
212 tty_in = open_tty(tty); in main()
227 if (tty == NULL) { in main()
254 syslog(LOG_INFO, "Starting on %s...", (tty ? tty : "stdio")); in main()
277 syslog(LOG_INFO, "Completed on %s", (tty ? tty : "stdio")); in main()
282 open_tty(const char *tty) in open_tty() argument
303 if (strcmp(pty, tty) == 0) in open_tty()
[all …]
/dragonfly/libexec/utmp_update/
H A Dutmp_update.c80 char tty[MAXPATHLEN]; in main() local
126 (void)snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, utx->ut_line); in main()
127 fd = open(tty, O_RDONLY|O_NONBLOCK, 0); in main()
130 logerr(errno, "Cannot stat `%s'", tty); in main()
132 logerr(0, "%s: Is not owned by you", tty); in main()
134 logerr(0, "%s: Not a tty device", tty); in main()
136 if (access(tty, W_OK|R_OK) == -1) in main()
137 logerr(errno, "Can't access `%s'", tty); in main()
147 logerr(errno, "Cannot open `%s'", tty); in main()
155 "utmpx pid %ld != parent %ld", tty, in main()
/dragonfly/contrib/less/
H A Dttyin.c27 public HANDLE tty; variable
29 public int tty; variable
89 tty = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE, in open_getchr()
92 GetConsoleMode(tty, &console_mode); in open_getchr()
94 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT); in open_getchr()
104 tty = open("CON", OPEN_READ); in open_getchr()
113 tty = open_tty(); in open_getchr()
124 SetConsoleMode(tty, console_mode); in close_getchr()
125 CloseHandle(tty); in close_getchr()
138 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT); in pclose()
[all …]
/dragonfly/sys/netgraph7/tty/
H A Dng_tty.c107 static int ngt_tioctl(struct tty *tp,
110 static int ngt_start(struct tty *tp);
152 NETGRAPH_INIT(tty, &typestruct);
244 ngt_close(struct tty *tp, int flag) in ngt_close()
325 ngt_input(int c, struct tty *tp) in ngt_input()
412 ngt_start(struct tty *tp) in ngt_start()
467 struct tty *tp = sc->tp; in ngt_timeout()
497 struct tty *tp = sc->tp; in ngt_newhook()
536 struct tty *tp = sc->tp; in ngt_disconnect()
557 struct tty *tp = sc->tp; in ngt_shutdown()
[all …]
/dragonfly/sys/netgraph/tty/
H A Dng_tty.c172 NETGRAPH_INIT(tty, &typestruct);
187 ngt_open(cdev_t dev, struct tty *tp) in ngt_open()
257 ngt_close(struct tty *tp, int flag) in ngt_close()
338 ngt_input(int c, struct tty *tp) in ngt_input()
406 ngt_start(struct tty *tp) in ngt_start()
470 struct tty *tp = sc->tp; in ngt_timeout()
503 struct tty *tp = sc->tp; in ngt_newhook()
525 struct tty *tp = sc->tp; in ngt_disconnect()
546 struct tty *tp = sc->tp; in ngt_shutdown()
572 struct tty *tp = sc->tp; in ngt_rcvdata()
[all …]
/dragonfly/usr.bin/killall/
H A Dkillall.c125 char *tty = NULL; in main() local
182 tty = *av; in main()
257 tty = ttyname(0); in main()
258 if (tty) in main()
259 tty = strdup(tty); in main()
262 if (tty) { in main()
263 if (strncmp(tty, "/dev/", 5) == 0) in main()
267 else if (isdigit(tty[0])) in main()
308 if (tty && mib[2] == KERN_PROC_ALL) { in main()
342 if (Tflag && tty) in main()
[all …]
/dragonfly/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c101 _nc_trace_ttymode(TTY * tty) in _nc_trace_ttymode() argument
171 if (tty->c_iflag & ALLIN) in _nc_trace_ttymode()
172 lookup_bits(buf, iflags, "iflags", tty->c_iflag); in _nc_trace_ttymode()
174 if (tty->c_oflag & ALLOUT) in _nc_trace_ttymode()
175 lookup_bits(buf, oflags, "oflags", tty->c_oflag); in _nc_trace_ttymode()
177 if (tty->c_cflag & ALLCTRL) in _nc_trace_ttymode()
178 lookup_bits(buf, cflags, "cflags", tty->c_cflag); in _nc_trace_ttymode()
197 int value = (int) (tty->c_cflag & CSIZE); in _nc_trace_ttymode()
212 if (tty->c_lflag & ALLLOCAL) in _nc_trace_ttymode()
213 lookup_bits(buf, lflags, "lflags", tty->c_lflag); in _nc_trace_ttymode()
[all …]
/dragonfly/lib/libpam/modules/pam_login_access/
H A Dpam_login_access.c60 const void *rhost, *tty, *user; in pam_sm_acct_mgmt() local
77 pam_err = pam_get_item(pamh, PAM_TTY, &tty); in pam_sm_acct_mgmt()
90 } else if (tty != NULL && *(const char *)tty != '\0') { in pam_sm_acct_mgmt()
92 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt()
93 if (login_access(user, tty) != 0) in pam_sm_acct_mgmt()
96 (const char *)user, (const char *)tty); in pam_sm_acct_mgmt()
/dragonfly/usr.sbin/pstat/
H A Dpstat.c707 struct tty *tty; in ttymode() local
721 if ((tty = malloc(ttyspace * sizeof(*tty))) == NULL) in ttymode()
729 free(tty); in ttymode()
733 ttytype(struct tty *tty, const char *name, int type, int number, int indir) in ttytype() argument
735 struct tty *tp; in ttytype()
737 struct tty **ttyaddr; in ttytype()
739 if (tty == NULL) in ttytype()
745 if ((tty = realloc(tty, ttyspace * sizeof(*tty))) == NULL) in ttytype()
750 KGET2(ttyaddr, tty, (ssize_t)(ntty * sizeof(struct tty)), in ttytype()
753 KGET1(type, tty, (ssize_t)(ntty * sizeof(struct tty)), in ttytype()
[all …]
/dragonfly/contrib/gdb-7/gdb/
H A Dinflow.c684 int tty; in new_tty() local
693 tty = open ("/dev/tty", O_RDWR); in new_tty()
694 if (tty > 0) in new_tty()
699 ioctl (tty, TIOCNOTTY, 0); in new_tty()
700 close (tty); in new_tty()
710 if (tty != 0) in new_tty()
715 if (tty != 1) in new_tty()
720 if (tty != 2) in new_tty()
728 if (ioctl (tty, TIOCSCTTY, 0) == -1) in new_tty()
735 if (tty > 2) in new_tty()
[all …]
/dragonfly/sys/kern/
H A Dtty_conf.c133 l_noopen(cdev_t dev, struct tty *tp) in l_noopen()
140 l_noclose(struct tty *tp, int flag) in l_noclose()
147 l_noread(struct tty *tp, struct uio *uio, int flag) in l_noread()
154 l_nowrite(struct tty *tp, struct uio *uio, int flag) in l_nowrite()
161 l_norint(int c, struct tty *tp) in l_norint()
168 l_nostart(struct tty *tp) in l_nostart()
179 l_nullioctl(struct tty *tp, u_long cmd, char *data, int flags, in l_nullioctl()
/dragonfly/lib/libutil/
H A Dlogin_ok.c127 login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap, in login_ttyok() argument
132 if (lc != NULL && tty != NULL && *tty != '\0') { in login_ttyok()
137 te = getttynam(tty); /* Need group name */ in login_ttyok()
141 if (ttl != NULL && !login_str2inlist(ttl, tty, grp, 0)) in login_ttyok()
146 if (ttl != NULL && login_str2inlist(ttl, tty, grp, 0)) in login_ttyok()
162 auth_ttyok(login_cap_t *lc, const char * tty) in auth_ttyok() argument
164 return login_ttyok(lc, tty, "ttys.allow", "ttys.deny"); in auth_ttyok()
/dragonfly/contrib/cvs-1.12/lib/
H A Dgetpass.c87 FILE *tty; in getpass() local
98 tty = fopen ("/dev/tty", "w+"); in getpass()
99 if (tty == NULL) in getpass()
107 __fsetlocking (tty, FSETLOCKING_BYCALLER); in getpass()
109 out = in = tty; in getpass()
168 call_fclose (tty); in getpass()
/dragonfly/usr.bin/login/
H A Dlogin.c136 static char *tty; variable
239 tty = ttyn + sizeof(_PATH_DEV) -1; in main()
241 tty = ttyn; in main()
433 login_fbtab(tty, pwd->pw_uid, pwd->pw_gid); in main()
461 if (hflag && isdialuptty(tty)) in main()
471 hostname, tty, pwd->pw_name); in main()
474 tty, pwd->pw_name); in main()
484 username, tty, hostname); in main()
487 username, tty); in main()
928 pwd->pw_name, rtype, hostname, tty); in refused()
[all …]

12345678