/freebsd-10.0-release/contrib/libreadline/ |
H A D | input.c | 176 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.0-release/usr.bin/write/ |
H A D | write.c | 80 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.0-release/contrib/tcsh/ |
H A D | sh.file.c | 143 * 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.0-release/lib/libutil/ |
H A D | login_ok.c | 128 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.0-release/libexec/talkd/ |
H A D | extern.h | 36 int find_user(const char *name, char *tty);
|
/freebsd-10.0-release/contrib/gdb/gdb/ |
H A D | inflow.c | 66 /* 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.0-release/sys/dev/rp/ |
H A D | rpvar.h | 45 struct tty * rp_tty; /* cross reference */
|
/freebsd-10.0-release/sys/sys/ |
H A D | cons.h | 42 struct tty; 97 extern struct tty *constty; /* Temporary virtual console. */ 133 void constty_set(struct tty *tp);
|
/freebsd-10.0-release/usr.bin/rlogin/ |
H A D | rlogin.c | 130 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.0-release/crypto/heimdal/appl/login/ |
H A D | utmp_login.c | 85 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.0-release/usr.bin/rwall/ |
H A D | rwall.c | 69 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.0-release/usr.sbin/pstat/ |
H A D | pstat.c | 57 #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.0-release/lib/libpam/modules/pam_lastlog/ |
H A D | pam_lastlog.c | 75 const void *rhost, *tty; local 91 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 96 if (tty == NULL) { 102 if (strncmp(tty, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) 103 tty = (const char *)tty + sizeof(_PATH_DEV) - 1; 140 strncpy(utl.ut_line, tty, sizeof utl.ut_line);
|
/freebsd-10.0-release/sys/dev/bvm/ |
H A D | bvm_console.c | 37 #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.0-release/sys/dev/cfe/ |
H A D | cfe_console.c | 39 #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.0-release/sys/dev/ofw/ |
H A D | ofw_console.c | 40 #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.0-release/usr.bin/who/ |
H A D | who.c | 165 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.0-release/sys/kern/ |
H A D | tty.c | 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) 159 ttydev_enter(struct tty *tp) 173 ttydev_leave(struct tty *t [all...] |
/freebsd-10.0-release/release/picobsd/tinyware/aps/ |
H A D | main.c | 49 char *pgid, *sid, *tty, *cred; local 69 tty=strtok(NULL,sep); 76 major=strtok(tty,sep1);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | sshlogin.c | 10 * 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.0-release/usr.bin/finger/ |
H A D | finger.h | 58 short writable; /* tty is writable */ 61 char tty[sizeof ((struct utmpx *)0)->ut_line]; /* tty line */ member in struct:where
|
/freebsd-10.0-release/sys/dev/uart/ |
H A D | uart_tty.c | 42 #include <sys/tty.h> 137 uart_tty_open(struct tty *tp) 151 uart_tty_close(struct tty *tp) 172 uart_tty_outwakeup(struct tty *tp) 197 uart_tty_inwakeup(struct tty *tp) 214 uart_tty_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) 233 uart_tty_param(struct tty *tp, struct termios *t) 284 uart_tty_modem(struct tty *tp, int biton, int bitoff) 298 struct tty *tp; 375 struct tty *t [all...] |
/freebsd-10.0-release/usr.bin/killall/ |
H A D | killall.c | 58 " [-u user] [-t tty] [-c cmd] [-SIGNAL] [cmd]...\n"); 102 char *tty = NULL; local 182 errx(1, "must specify tty"); 183 tty = *av; 244 if (user == NULL && tty == NULL && cmd == NULL && !jflag && ac == 0) 247 if (tty) { 248 if (strncmp(tty, "/dev/", 5) == 0) 249 snprintf(buf, sizeof(buf), "%s", tty); 250 else if (strncmp(tty, "tty", [all...] |
/freebsd-10.0-release/sys/dev/cx/ |
H A D | if_cx.c | 43 #include <sys/tty.h> 133 struct tty *tty; member in struct:_drv_t 188 static void cx_oproc (struct tty *tp); 189 static int cx_param (struct tty *tp, struct termios *t); 190 static void cx_stop (struct tty *tp, int flag); 315 if (d->atimeout == 1 && d->tty && d->tty->t_state & TS_BUSY) { 316 d->tty->t_state &= ~TS_BUSY; 317 if (d->tty [all...] |
/freebsd-10.0-release/contrib/opie/ |
H A D | opielogin.c | 358 char *tty; local 360 tty = strrchr(ttyn, '/'); 362 if (tty == NULL) 363 tty = ttyn; 365 tty++; 367 if ((t = getttynam(tty)) != NULL) 651 char *tty, host[256]; local 817 ioctl(0, TIOCNXCL, 0); /* set non-exclusive use of tty */ 844 syslog(LOG_DEBUG, "reading user name from tty buffer"); 1003 tty [all...] |