Searched defs:tty (Results 1 - 25 of 31) sorted by relevance

12

/external/toybox/toys/posix/
H A Dtty.c0 /* tty.c - Show stdin's terminal name
5 * See http://opengroup.org/onlinepubs/9699919799/utilities/tty.html
7 USE_TTY(NEWTOY(tty, "s", TOYFLAG_USR|TOYFLAG_BIN))
10 bool "tty"
13 usage: tty [-s]
17 Prints "not a tty" and exits with nonzero status if no terminal
27 char *tty = ttyname(0); local
29 if (!toys.optflags) puts(tty ? tty : "not a tty");
[all...]
/external/strace/tests/
H A Dioctl.c64 struct termios tty; local
65 (void) ioctl(-1, TCGETS, &tty);
67 " = -1 EBADF (Bad file descriptor)\n", &tty);
/external/openssh/
H A Dauth-sia.c83 session_setup_sia(struct passwd *pw, char *tty) argument
91 tty, 0, NULL) != SIASUCCESS)
H A Dsshlogin.c10 * on a tty.
127 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, argument
135 li = login_alloc_entry(pid, user, host, tty);
157 record_logout(pid_t pid, const char *tty, const char *user) argument
161 li = login_alloc_entry(pid, user, NULL, tty);
H A Dsshpty.c6 * 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
93 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */
96 pty_release(const char *tty) argument
99 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0)
100 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
101 if (chmod(tty, (mode_t) 0666) < 0)
102 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno));
106 /* Makes the tty th
109 pty_make_controlling_tty(int *ttyfd, const char *tty) argument
200 pty_setowner(struct passwd *pw, const char *tty) argument
[all...]
H A Dsession.h39 /* tty */
43 char tty[TTYSZ]; member in struct:Session
H A Dauth-pam.c657 * 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 Dloginrec.c604 if (strncmp(src, "tty", 3) == 0)
843 int tty; local
850 tty=0;
853 tty++;
860 logit("%s: tty not found", __func__);
865 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
869 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
872 pos = (off_t)tty * sizeof(struct utmp);
879 logit("%s: Couldn't seek to tty %d slot in %s",
880 __func__, tty, UTMP_FIL
[all...]
H A Dmonitor.c1499 /* Record that there was a login on that tty from the remote host. */
1500 record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid,
1510 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd);
1532 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
1535 pty_setowner(authctxt->pw, s->tty);
1538 buffer_put_cstring(m, s->tty);
1571 debug3("%s: tty %s ptyfd %d", __func__, s->tty,
1587 char *tty; local
[all...]
H A Dsession.c430 * This is called to fork and execute a command when we have no tty. This
624 * This is called to fork and execute a command when we have a tty. This
626 * setting up file descriptors, controlling tty, updating wtmp, utmp,
680 /* Close the master side of the pseudo tty. */
683 /* Make the pseudo tty our controlling tty. */
684 pty_make_controlling_tty(&ttyfd, s->tty);
686 /* Redirect stdin/stdout/stderr from the pseudo tty. */
694 /* Close the extra descriptor for the pseudo tty. */
729 /* Parent. Close the slave side of the pseudo tty
782 char session_type[1024], *tty = NULL; local
1991 session_by_tty(char *tty) argument
[all...]
/external/autotest/client/site_tests/firmware_TouchMTB/
H A Dcommon_util.py12 import tty namespace
48 tty.setraw(fin.fileno())
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mashups/
H A Dinteractive.py26 import tty namespace
44 tty.setraw(sys.stdin.fileno())
45 tty.setcbreak(sys.stdin.fileno())
/external/chromium-trace/catapult/devil/devil/android/tools/
H A Dkeyboard.py13 import tty namespace
117 new_attrs[tty.LFLAG] = new_attrs[tty.LFLAG] & ~(termios.ICANON)
118 new_attrs[tty.CC][tty.VMIN] = 1
119 new_attrs[tty.CC][tty.VTIME] = 0
/external/toybox/toys/other/
H A Dlogin.c50 int hh = toys.optflags&FLAG_h, count, tty; local
54 for (tty=0; tty<3; tty++) if (isatty(tty)) break;
55 if (tty == 3) error_exit("no tty");
111 ttyname(tty), hh ? "from " : "", hh ? TT.hostname : "");
160 ttyname(tty), hh ? "from" : "", hh ? TT.hostname : "");
/external/autotest/client/cros/cellular/wardmodem/
H A Dat_channel.py11 import tty namespace
80 tty.setraw(self._channel, tty.TCSANOW)
/external/autotest/client/cros/i2c/
H A Dusb_to_i2c.py16 from autotest_lib.client.cros import tty namespace
34 # Try to find a tty terminal that driver name matches usb_uart_driver.
35 tty_path = tty.find_tty_by_driver(usb_uart_driver)
/external/openssh/openbsd-compat/
H A Dport-linux.c139 ssh_selinux_setup_pty(char *pwname, const char *tty) argument
148 debug3("%s: setting TTY context on %s", __func__, tty);
154 if (getfilecon(tty, &old_tty_ctx) == -1) {
166 if (setfilecon(tty, new_tty_ctx) != 0)
/external/squashfs-tools/squashfs-tools/
H A Dprogressbar.c97 static int tty = -1; local
110 if(tty == -1)
111 tty = isatty(STDOUT_FILENO);
112 if(!tty) {
H A Dunsquashfs.c2407 static int tty = -1; local
2420 if(tty == -1)
2421 tty = isatty(STDOUT_FILENO);
2422 if(!tty) {
/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dp2p-nfc.py368 import sys, tty, termios namespace
378 import sys, tty, termios, select namespace
384 tty.setraw(fd)
/external/autotest/client/common_lib/
H A Dpexpect.py75 import tty namespace
608 """This makes the pseudo-terminal the controlling tty. This should be
614 # Disconnect from controlling tty if still connected.
615 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
621 # Verify we are disconnected from controlling tty
623 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
626 raise ExceptionPexpect, "Error! We are not disconnected from a controlling tty."
628 # Good! We are disconnected from a controlling tty.
638 # Verify we now have a controlling tty.
639 fd = os.open("/dev/tty", o
[all...]
/external/clang/test/Analysis/
H A Dtaint-tester.c59 int tty = xy.y; // expected-warning + {{tainted}} local
/external/lldb/test/pexpect-2.4/
H A Dpexpect.py76 import tty namespace
609 """This makes the pseudo-terminal the controlling tty. This should be
615 # Disconnect from controlling tty if still connected.
617 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
626 # Verify we are disconnected from controlling tty
628 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
631 raise ExceptionPexpect, "Error! We are not disconnected from a controlling tty."
633 # Good! We are disconnected from a controlling tty.
643 # Verify we now have a controlling tty.
644 fd = os.open("/dev/tty", o
[all...]
/external/toybox/toys/pending/
H A Dtelnetd.c156 static void write_issue(char *tty) argument
172 if (ch == 'l') fputs(tty, stdout);
185 char tty_name[30]; //tty name length.
/external/toybox/generated/
H A Dglobals.h1179 dev_t tty; member in struct:ps_data

Completed in 5065 milliseconds

12