Searched refs:tty (Results 26 - 50 of 228) sorted by relevance

12345678910

/freebsd-10.2-release/contrib/texinfo/info/
H A Dterminal.c696 int tty;
706 tty = fileno (stdin);
709 tcgetattr (tty, &original_termios);
710 tcgetattr (tty, &ttybuff);
713 ioctl (tty, TCGETA, &original_termio);
714 ioctl (tty, TCGETA, &ttybuff);
750 tcsetattr (tty, TCSANOW, &ttybuff);
752 tcflow (tty, TCOOFF);
753 tcflow (tty, TCOON);
757 ioctl (tty, TCSET
694 int tty; local
834 int tty; local
[all...]
/freebsd-10.2-release/contrib/libreadline/
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-10.2-release/usr.bin/write/
H A Dwrite.c80 char tty[MAXPATHLEN], *mytty; local
97 errx(1, "can't find your tty");
99 errx(1, "can't find your tty's name");
112 search_utmp(argv[0], tty, mytty, myuid);
113 do_write(tty, mytty, myuid);
136 (void)fprintf(stderr, "usage: write user [tty]\n");
142 * the given tty
145 utmp_chk(char *user, char *tty) argument
149 strncpy(lu.ut_line, tty, sizeof lu.ut_line);
173 search_utmp(char *user, char *tty, cha argument
222 term_chk(char *tty, int *msgsokP, time_t *atimeP, int showerror) argument
242 do_write(char *tty, char *mytty, uid_t myuid) argument
[all...]
/freebsd-10.2-release/contrib/tcsh/
H A Dsh.file.c143 * This must be done after every command: if the tty gets into raw or
167 struct termios tty, tty_normal; local
169 struct termio tty, tty_normal;
172 struct sgttyb tty, tty_normal;
180 (void) tcgetattr(SHOUT, &tty);
184 tty_normal = tty;
185 tty.c_iflag &= ~INLCR;
186 tty.c_oflag &= ~ONLCR;
188 (void) xtcsetattr(SHOUT, TCSANOW, &tty);
190 (void) ioctl(SHOUT, TCSETAW, (ioctl_t) &tty);
219 struct termios tty, tty_normal; local
221 struct termio tty, tty_normal; local
224 struct sgttyb tty, tty_normal; local
388 struct termios tty; local
[all...]
/freebsd-10.2-release/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-10.2-release/libexec/talkd/
H A Dextern.h36 int find_user(const char *name, char *tty);
/freebsd-10.2-release/contrib/gdb/gdb/
H A Dinflow.c66 /* Our own tty state, which we restore every time we need to deal with the
91 /* The name of the tty (from the `tty' command) that we gave to the inferior
119 /* Get all the current tty settings (including whether we have a
120 tty at all!). Can't do this in _initialize_inflow because
246 OOPSY ("setting tty state");
261 `sharing' in the sense that we need to save and restore tty
264 the saving and restoring of the tty state, but ignore errors
356 the tty state when it needs to.
361 /* Set tty stat
518 int tty; local
[all...]
/freebsd-10.2-release/sys/dev/rp/
H A Drpvar.h45 struct tty * rp_tty; /* cross reference */
/freebsd-10.2-release/usr.bin/rlogin/
H A Drlogin.c130 struct termios tty; local
222 if (len < (sizeof(term) - 1) && tcgetattr(0, &tty) == 0) {
224 for (ospeed = i = cfgetospeed(&tty), len2 = 2; i > 9; len2++)
518 struct termios tty; local
552 (void)tcgetattr(0, &tty);
553 tty.c_iflag &= ~IXON;
554 (void)tcsetattr(0, TCSANOW, &tty);
557 (void)tcgetattr(0, &tty);
558 tty.c_iflag |= (deftty.c_iflag & IXON);
559 (void)tcsetattr(0, TCSANOW, &tty);
642 struct termios tty; local
[all...]
/freebsd-10.2-release/crypto/heimdal/appl/login/
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-10.2-release/usr.bin/rwall/
H A Drwall.c69 static char notty[] = "no tty";
134 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; local
160 tty = ttyname(STDERR_FILENO);
161 if (tty == NULL)
162 tty = notty;
163 fprintf(fp, " (%s) at %d:%02d ...\n", tty,
/freebsd-10.2-release/usr.sbin/pstat/
H A Dpstat.c57 #include <sys/tty.h>
236 TAILQ_HEAD(, tty) tl;
237 struct tty *tp, tty; local
247 if (kvm_read(kd, (u_long)tp, &tty, sizeof tty) != sizeof tty)
249 xt.xt_insize = tty.t_inq.ti_nblocks * TTYINQ_DATASIZE;
250 xt.xt_incc = tty.t_inq.ti_linestart - tty
[all...]
/freebsd-10.2-release/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c73 const void *rhost, *tty; local
89 pam_err = pam_get_item(pamh, PAM_TTY, &tty);
94 if (tty == NULL) {
100 if (strncmp(tty, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
101 tty = (const char *)tty + sizeof(_PATH_DEV) - 1;
138 strncpy(utl.ut_line, tty, sizeof utl.ut_line);
/freebsd-10.2-release/sys/dev/ofw/
H A Dofw_console.c40 #include <sys/tty.h>
87 struct tty *tp;
113 ofwtty_open(struct tty *tp)
125 ofwtty_close(struct tty *tp)
133 ofwtty_outwakeup(struct tty *tp)
149 struct tty *tp;
152 tp = (struct tty *)v;
/freebsd-10.2-release/sys/dev/cfe/
H A Dcfe_console.c39 #include <sys/tty.h>
87 struct tty *tp;
97 cfe_tty_open(struct tty *tp)
108 cfe_tty_close(struct tty *tp)
116 cfe_tty_outwakeup(struct tty *tp)
139 struct tty *tp;
142 tp = (struct tty *)v;
/freebsd-10.2-release/sys/dev/bvm/
H A Dbvm_console.c37 #include <sys/tty.h>
108 struct tty *tp;
118 bvm_tty_open(struct tty *tp)
129 bvm_tty_close(struct tty *tp)
137 bvm_tty_outwakeup(struct tty *tp)
156 struct tty *tp;
159 tp = (struct tty *)v;
/freebsd-10.2-release/sys/kern/
H A Dtty.c31 __FBSDID("$FreeBSD: releng/10.2/sys/kern/tty.c 280258 2015-03-19 13:37:36Z rwatson $");
60 #include <sys/tty.h>
70 static MALLOC_DEFINE(M_TTY, "tty", "tty device");
72 static void tty_rel_free(struct tty *tp);
74 static TAILQ_HEAD(, tty) tty_list = TAILQ_HEAD_INITIALIZER(tty_list);
76 SX_SYSINIT(tty_list, &tty_list_sx, "tty list");
105 tty_watermarks(struct tty *tp)
126 tty_drain(struct tty *tp, int leaving)
176 ttydev_enter(struct tty *t
[all...]
/freebsd-10.2-release/usr.bin/who/
H A Dwho.c165 char buf[80], tty[PATH_MAX]; local
178 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line);
179 if (stat(tty, &sb) == 0) {
268 const char *name, *tty; local
270 if ((tty = ttyname(STDIN_FILENO)) == NULL)
271 tty = "tty??";
272 else if (strncmp(tty, _PATH_DEV, sizeof _PATH_DEV - 1) == 0)
273 tty
[all...]
/freebsd-10.2-release/usr.sbin/bhyve/
H A Duart_emul.c94 int fd; /* tty device file descriptor */
115 struct ttyfd tty; member in struct:uart_softc
179 if (sc->tty.opened) {
181 * Flush any unread input from the tty buffer.
184 nread = read(sc->tty.fd, flushbuf, sizeof(flushbuf));
191 * on the tty fd.
220 if (sc->tty.opened) {
248 if (sc->tty.opened) {
270 ttyopen(&sc->tty);
271 sc->mev = mevent_add(sc->tty
[all...]
/freebsd-10.2-release/release/picobsd/tinyware/aps/
H A Dmain.c49 char *pgid, *sid, *tty, *cred; local
69 tty=strtok(NULL,sep);
76 major=strtok(tty,sep1);
/freebsd-10.2-release/sys/sys/
H A Dcons.h42 struct tty;
97 extern struct tty *constty; /* Temporary virtual console. */
133 void constty_set(struct tty *tp);
/freebsd-10.2-release/crypto/openssh/
H A Dsshlogin.c10 * on a tty.
126 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, argument
134 li = login_alloc_entry(pid, user, host, tty);
156 record_logout(pid_t pid, const char *tty, const char *user) argument
160 li = login_alloc_entry(pid, user, NULL, tty);
/freebsd-10.2-release/usr.bin/finger/
H A Dfinger.h58 short writable; /* tty is writable */
61 char tty[sizeof ((struct utmpx *)0)->ut_line]; /* tty line */ member in struct:where
/freebsd-10.2-release/sys/dev/uart/
H A Duart_tty.c42 #include <sys/tty.h>
141 uart_tty_open(struct tty *tp)
155 uart_tty_close(struct tty *tp)
176 uart_tty_outwakeup(struct tty *tp)
201 uart_tty_inwakeup(struct tty *tp)
218 uart_tty_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td)
237 uart_tty_param(struct tty *tp, struct termios *t)
288 uart_tty_modem(struct tty *tp, int biton, int bitoff)
302 struct tty *tp;
379 struct tty *t
[all...]
/freebsd-10.2-release/sys/dev/nmdm/
H A Dnmdm.c43 #include <sys/tty.h>
79 struct tty *np_tty;
102 nmdm_close(struct tty *tp)
106 struct tty *otp;
159 struct tty *tp;
251 struct tty *tp, *otp;
318 nmdm_param(struct tty *tp, struct termios *t)
321 struct tty *tp2;
376 nmdm_modem(struct tty *tp, int sigon, int sigoff)
401 nmdm_inwakeup(struct tty *t
[all...]

Completed in 190 milliseconds

12345678910