/external/openssh/ |
H A D | auth-sia.c | 83 session_setup_sia(struct passwd *pw, char *tty) argument 91 tty, 0, NULL) != SIASUCCESS)
|
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);
|
H A D | sshpty.c | 6 * Allocating a pseudo-terminal, and making it the controlling tty. 59 * descriptors for the pty and tty sides and the name of the tty side are 88 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */ 91 pty_release(const char *tty) argument 94 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) 95 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); 96 if (chmod(tty, (mode_t) 0666) < 0) 97 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); 101 /* Makes the tty th 104 pty_make_controlling_tty(int *ttyfd, const char *tty) argument 208 pty_setowner(struct passwd *pw, const char *tty) argument [all...] |
H A D | session.h | 39 /* tty */ 43 char tty[TTYSZ]; member in struct:Session
|
H A D | auth-pam.c | 657 * sshd doesn't set the tty until too late in the auth process and 658 * may not even set one (for tty-less connections) 923 do_pam_set_tty(const char *tty) argument 925 if (tty != NULL) { 926 debug("PAM: setting PAM_TTY to \"%s\"", tty); 927 sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, tty);
|
H A D | loginrec.c | 605 if (strncmp(src, "tty", 3) == 0) 844 int tty; local 851 tty=0; 854 tty++; 861 logit("%s: tty not found", __func__); 866 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ 870 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { 873 pos = (off_t)tty * sizeof(struct utmp); 880 logit("%s: Couldn't seek to tty %d slot in %s", 881 __func__, tty, UTMP_FIL [all...] |
H A D | monitor.c | 1394 /* Record that there was a login on that tty from the remote host. */ 1395 record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid, 1405 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd); 1427 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); 1430 pty_setowner(authctxt->pw, s->tty); 1433 buffer_put_cstring(m, s->tty); 1466 debug3("%s: tty %s ptyfd %d", __func__, s->tty, 1482 char *tty; local [all...] |
H A D | session.c | 443 * This is called to fork and execute a command when we have no tty. This 637 * This is called to fork and execute a command when we have a tty. This 639 * setting up file descriptors, controlling tty, updating wtmp, utmp, 693 /* Close the master side of the pseudo tty. */ 696 /* Make the pseudo tty our controlling tty. */ 697 pty_make_controlling_tty(&ttyfd, s->tty); 699 /* Redirect stdin/stdout/stderr from the pseudo tty. */ 707 /* Close the extra descriptor for the pseudo tty. */ 742 /* Parent. Close the slave side of the pseudo tty 1936 session_by_tty(char *tty) argument [all...] |
/external/dropbear/ |
H A D | cli-authinteract.c | 36 FILE* tty = NULL; local 44 tty = fopen(_PATH_TTY, "r"); 45 if (tty) { 46 ret = fgets(buf, sizeof(buf), tty); 47 fclose(tty);
|
H A D | chansession.h | 48 unsigned char * tty; member in struct:ChanSess
|
H A D | cli-kex.c | 118 FILE *tty = NULL; local 134 tty = fopen(_PATH_TTY, "r"); 135 if (tty) { 136 response = getc(tty); 137 fclose(tty);
|
H A D | loginrec.c | 449 if (strncmp(src, "tty", 3) == 0) 684 int tty; local 691 tty=0; 695 tty++; 702 dropbear_log(LOG_WARNING, "utmp_write_entry: tty not found"); 707 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ 711 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { 712 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); 725 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); 963 * username on a given tty lin [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/wscons/ |
H A D | SDL_wsconsevents.c | 43 struct termios tty; local 55 tty = private->saved_tty; 56 tty.c_iflag = IGNPAR | IGNBRK; 57 tty.c_oflag = 0; 58 tty.c_cflag = CREAD | CS8; 59 tty.c_lflag = 0; 60 tty.c_cc[VTIME] = 0; 61 tty.c_cc[VMIN] = 1; 62 cfsetispeed(&tty, 9600); 63 cfsetospeed(&tty, 960 [all...] |
/external/openssh/openbsd-compat/ |
H A D | port-linux.c | 140 ssh_selinux_setup_pty(char *pwname, const char *tty) argument 149 debug3("%s: setting TTY context on %s", __func__, tty); 155 if (getfilecon(tty, &old_tty_ctx) == -1) { 167 if (setfilecon(tty, new_tty_ctx) != 0)
|
/external/bluetooth/bluez/compat/ |
H A D | dun.c | 157 static int dun_exec(char *tty, char *prog, char **args) argument 186 static int dun_create_tty(int sk, char *tty, int size) argument 213 snprintf(tty, size, "/dev/rfcomm%d", id); 214 while (stat(tty, &st) < 0) { 215 snprintf(tty, size, "/dev/bluetooth/rfcomm/%d", id); 216 if (stat(tty, &st) < 0) { 217 snprintf(tty, size, "/dev/rfcomm%d", id); 309 char tty[100]; local 312 if (dun_create_tty(sk, tty, sizeof(tty) [all...] |
/external/openssl/crypto/des/ |
H A D | read_pwd.c | 148 #define TTY_get(tty,data) tcgetattr(tty,data) 149 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 156 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) 157 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) 164 #define TTY_get(tty,data) ioctl(tty,TIOCGET 279 static FILE *tty; local 479 noecho_fgets(char *buf, int size, FILE *tty) argument [all...] |
/external/openssl/crypto/ui/ |
H A D | ui_openssl.c | 221 # define TTY_get(tty,data) tcgetattr(tty,data) 222 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 229 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) 230 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) 237 # define TTY_get(tty,data) ioctl(tty,TIOCGET 669 noecho_fgets(char *buf, int size, FILE *tty) argument [all...] |
/external/clang/test/Analysis/ |
H A D | taint-tester.c | 63 int tty = xy.y; // expected-warning + {{tainted}} local
|
/external/quake/quake/src/WinQuake/ |
H A D | net_ser.cpp | 78 int tty;
member in struct:SerialLine_s 125 b = TTY_ReadByte(p->tty);
369 serialLine[n].tty = TTY_Open(n);
408 return TTY_OutputQueueIsEmpty(((SerialLine *)sock->driverdata)->tty);
426 TTY_WriteByte(p->tty, b);
431 TTY_WriteByte(p->tty, b);
433 TTY_WriteByte(p->tty, b);
438 TTY_WriteByte(p->tty, b);
440 TTY_WriteByte(p->tty, b);
443 TTY_WriteByte(p->tty, [all...] |
/external/bluetooth/bluez/serial/ |
H A D | proxy.c | 349 static inline int tty_open(const char *tty, struct termios *ti) argument 353 sk = open(tty, O_RDWR | O_NOCTTY); 356 error("Can't open TTY %s: %s(%d)", tty, strerror(err), err);
|
/external/kernel-headers/original/linux/ |
H A D | serial_core.h | 143 #include <linux/tty.h> 310 struct tty_struct *tty; member in struct:uart_info 405 ((port)->info->tty->stopped || (port)->info->tty->hw_stopped) 446 do_SAK(info->tty); 470 else if (info->tty) 471 tty_hangup(info->tty); 484 struct tty_struct *tty = info->tty; local 489 if (tty 510 struct tty_struct *tty = port->info->tty; local [all...] |
H A D | tty.h | 5 * 'tty.h' defines some structures used by tty_io.c and some defines. 39 * This is the flip buffer used for the tty driver. The buffer is 40 * located in the tty structure, and is used as a high speed interface 41 * between the tty driver and the tty line discipline. 81 #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR]) 82 #define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT]) 83 #define ERASE_CHAR(tty) ((tt 339 tty_devnum(struct tty_struct *tty) argument [all...] |
H A D | wanrouter.h | 224 char tty; /* Create a fake tty device */ member in struct:wandev_conf 225 unsigned tty_major; /* Major number for wanpipe tty device */ 226 unsigned tty_minor; /* Minor number for wanpipe tty device */
|
/external/ppp/pppd/ |
H A D | auth.c | 1535 char *tty; local 1625 tty = devnam; 1626 if (strncmp(tty, "/dev/", 5) == 0) 1627 tty += 5; 1628 logwtmp(tty, user, ifname); /* Add wtmp login entry */ 1639 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line)); 1670 char *tty; 1672 tty = devnam; 1673 if (strncmp(tty, "/dev/", 5) == 0) 1674 tty [all...] |
/external/qemu/ |
H A D | qemu-char.c | 805 struct termios tty; local 807 tty = oldtty; 809 tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP 811 tty.c_oflag |= OPOST; 812 tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN); 813 tty.c_cflag &= ~(CSIZE|PARENB); 814 tty.c_cflag |= CS8; 815 tty.c_cc[VMIN] = 1; 816 tty.c_cc[VTIME] = 0; 820 tty 1044 struct termios tty; local 1087 struct termios tty; local [all...] |