/external/openssh/ |
D | sshpty.c | 96 pty_release(const char *tty) in pty_release() argument 99 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) in pty_release() 100 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); in pty_release() 101 if (chmod(tty, (mode_t) 0666) < 0) in pty_release() 102 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); in pty_release() 109 pty_make_controlling_tty(int *ttyfd, const char *tty) in pty_make_controlling_tty() argument 117 fd = open(tty, O_RDWR|O_NOCTTY); in pty_make_controlling_tty() 132 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty() 167 fd = open(tty, O_RDWR); in pty_make_controlling_tty() 169 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty() [all …]
|
D | sshlogin.c | 127 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, in record_login() argument 135 li = login_alloc_entry(pid, user, host, tty); in record_login() 157 record_logout(pid_t pid, const char *tty, const char *user) in record_logout() argument 161 li = login_alloc_entry(pid, user, NULL, tty); in record_logout()
|
D | session.c | 532 pty_make_controlling_tty(&ttyfd, s->tty); in do_exec_pty() 605 record_utmp_only(pid, s->tty, s->pw->pw_name, in do_pre_login() 620 const char *forced = NULL, *tty = NULL; in do_exec() local 651 tty = s->tty; in do_exec() 652 if (strncmp(tty, "/dev/", 5) == 0) in do_exec() 653 tty += 5; in do_exec() 658 tty == NULL ? "" : " on ", in do_exec() 659 tty == NULL ? "" : tty, in do_exec() 719 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, in do_login() 1091 child_set_env(&env, &envsize, "SSH_TTY", s->tty); in do_setup_env() [all …]
|
/external/ppp/pppd/ |
D | session.h | 67 session_start(const int flags, const char* user, const char* passwd, const char* tty, char** msg); 70 #define session_auth(user, pass, tty, msg) \ argument 71 session_start(SESS_AUTH, user, pass, tty, msg) 73 #define session_check(user, pass, tty, msg) \ argument 74 session_start(SESS_ACCT, user, pass, tty, msg) 76 #define session_full(user, pass, tty, msg) \ argument 77 session_start(SESS_ALL, user, pass, tty, msg) 89 session_end(const char* tty);
|
/external/u-boot/tools/ |
D | kwboot.c | 285 kwboot_bootmsg(int tty, void *msg) in kwboot_bootmsg() argument 296 rc = tcflush(tty, TCIOFLUSH); in kwboot_bootmsg() 300 rc = kwboot_tty_send(tty, msg, 8); in kwboot_bootmsg() 306 rc = kwboot_tty_recv(tty, &c, 1, msg_rsp_timeo); in kwboot_bootmsg() 318 kwboot_debugmsg(int tty, void *msg) in kwboot_debugmsg() argument 327 rc = tcflush(tty, TCIOFLUSH); in kwboot_debugmsg() 331 rc = kwboot_tty_send(tty, msg, 8); in kwboot_debugmsg() 337 rc = kwboot_tty_recv(tty, buf, 16, msg_rsp_timeo); in kwboot_debugmsg() 419 kwboot_xmodem(int tty, const void *_data, size_t size) in kwboot_xmodem() argument 442 rc = kwboot_xm_sendblock(tty, &block); in kwboot_xmodem() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_ioctl.py | 10 tty = open("/dev/tty", "rb") variable 15 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 16 tty.close() 21 del tty, r, rpgrp 33 with open("/dev/tty", "rb") as tty: 34 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 50 with open("/dev/tty", "rb") as tty: 51 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, 1)
|
/external/python/cpython2/Lib/test/ |
D | test_ioctl.py | 10 tty = open("/dev/tty", "r") variable 15 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 16 tty.close() 21 del tty, r, rpgrp 33 tty = open("/dev/tty", "r") 34 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 50 with open("/dev/tty", "r") as tty: 51 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, 1)
|
/external/python/cpython3/Doc/library/ |
D | tty.rst | 1 :mod:`tty` --- Terminal control functions 4 .. module:: tty 11 **Source code:** :source:`Lib/tty.py` 15 The :mod:`tty` module defines functions for putting the tty into cbreak and raw 20 The :mod:`tty` module defines the following functions:
|
D | termios.rst | 1 :mod:`termios` --- POSIX style tty control 6 :synopsis: POSIX style tty control. 10 pair: tty; I/O control 14 This module provides an interface to the POSIX calls for tty I/O control. For a 17 *termios* style tty I/O control configured during installation. 33 Return a list containing the tty attributes for file descriptor *fd*, as 35 list of the tty special characters (each a string of length 1, except the 44 Set the tty attributes for file descriptor *fd* from the *attributes*, which is 79 Module :mod:`tty` 90 :keyword:`finally` statement to ensure that the old tty attributes are restored
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | keyboard.py | 13 import tty 112 new_attrs[tty.LFLAG] = new_attrs[tty.LFLAG] & ~(termios.ICANON) 113 new_attrs[tty.CC][tty.VMIN] = 1 114 new_attrs[tty.CC][tty.VTIME] = 0
|
/external/toybox/toys/posix/ |
D | tty.c | 27 char *tty = ttyname(0); in tty_main() local 29 if (!toys.optflags) puts(tty ? tty : "not a tty"); in tty_main() 31 toys.exitval = !tty; in tty_main()
|
/external/syzkaller/vm/adb/ |
D | adb.go | 178 tty, err := vmimpl.OpenConsole(con) 183 defer tty.Close() 186 tty.Close() 188 *out, _ = ioutil.ReadAll(tty) 367 var tty io.ReadCloser 370 tty, err = vmimpl.OpenAdbConsole(inst.adbBin, inst.device) 372 tty, err = vmimpl.OpenConsole(inst.console) 380 tty.Close() 390 tty.Close() 402 merger.Add("console", tty) [all …]
|
/external/toybox/toys/other/ |
D | login.c | 41 int hh = FLAG(h), count, tty = tty_fd(); in login_main() local 46 if (tty == -1) error_exit("no tty"); in login_main() 96 ttyname(tty), hh ? "from " : "", hh ? TT.h : ""); in login_main() 119 if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600)) in login_main() 128 ttyname(tty), hh ? "from" : "", hh ? TT.h : ""); in login_main()
|
/external/python/cpython2/Doc/library/ |
D | termios.rst | 2 :mod:`termios` --- POSIX style tty control 7 :synopsis: POSIX style tty control. 12 pair: tty; I/O control 14 This module provides an interface to the POSIX calls for tty I/O control. For a 17 *termios* style tty I/O control configured during installation. 33 Return a list containing the tty attributes for file descriptor *fd*, as 35 list of the tty special characters (each a string of length 1, except the 44 Set the tty attributes for file descriptor *fd* from the *attributes*, which is 79 Module :mod:`tty` 90 :keyword:`finally` statement to ensure that the old tty attributes are restored
|
D | tty.rst | 2 :mod:`tty` --- Terminal control functions 5 .. module:: tty 12 The :mod:`tty` module defines functions for putting the tty into cbreak and raw 17 The :mod:`tty` module defines the following functions:
|
/external/python/cpython3/Lib/ |
D | pty.py | 11 import tty 158 mode = tty.tcgetattr(STDIN_FILENO) 159 tty.setraw(STDIN_FILENO) 161 except tty.error: # This is the same as termios.error 167 tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
|
/external/python/cpython2/Lib/ |
D | pty.py | 11 import tty 169 mode = tty.tcgetattr(STDIN_FILENO) 170 tty.setraw(STDIN_FILENO) 172 except tty.error: # This is the same as termios.error 178 tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
|
D | getpass.py | 42 tty = None 46 tty = os.fdopen(fd, 'w+', 1) 47 input = tty 49 stream = tty 82 del input, tty # clean up unused file objects before blocking
|
/external/libcups/cups/ |
D | usersys.c | 582 HANDLE tty; /* Console handle */ in _cupsGetPassword() local 596 if ((tty = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) in _cupsGetPassword() 599 if (!GetConsoleMode(tty, &mode)) in _cupsGetPassword() 602 if (!SetConsoleMode(tty, 0)) in _cupsGetPassword() 620 while (ReadFile(tty, &passch, 1, &passbytes, NULL)) in _cupsGetPassword() 688 SetConsoleMode(tty, mode); in _cupsGetPassword() 706 int tty; /* /dev/tty - never read from stdin */ in _cupsGetPassword() 721 if ((tty = open("/dev/tty", O_RDONLY)) < 0) in _cupsGetPassword() 724 if (tcgetattr(tty, &original)) in _cupsGetPassword() 726 close(tty); in _cupsGetPassword() [all …]
|
/external/selinux/python/sepolgen/tests/test_data/ |
D | audit.log | 2 …auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) comm="pam_ti… 5 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) comm="beagle… 7 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) comm="beagle… 9 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) comm="clock-… 11 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) comm="clock-… 16 …auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=pts1 comm="su" exe=… 18 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 comm="xauth" e… 20 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 comm="xauth" e… 22 …00 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 comm="xauth" e… 27 …auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=pts1 comm="su" exe=… [all …]
|
/external/selinux/python/audit2allow/ |
D | test.log | 4 …id=13944 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="automo… 6 …id=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts10 comm="httpd" … 8 …id=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts10 comm="smbd" e… 10 … uid=0 gid=0 euid=3267 suid=3267 fsuid=3267 egid=3267 sgid=3267 fsgid=3267 tty=(none) comm="vsftpd… 12 …id=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts10 comm="httpd" … 15 … auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) comm="httpd"… 17 …id=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts10 comm="httpd" … 19 …id=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts10 comm="httpd" … 22 … auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) comm="httpd"… 24 … auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) comm="sealer… [all …]
|
/external/strace/tests-m32/ |
D | ioctl.c | 62 struct termios tty; in main() local 63 (void) ioctl(-1, TCGETS, &tty); in main() 65 " = -1 EBADF (%m)\n", &tty); in main()
|
/external/strace/tests/ |
D | ioctl.c | 62 struct termios tty; in main() local 63 (void) ioctl(-1, TCGETS, &tty); in main() 65 " = -1 EBADF (%m)\n", &tty); in main()
|
/external/strace/tests-mx32/ |
D | ioctl.c | 62 struct termios tty; in main() local 63 (void) ioctl(-1, TCGETS, &tty); in main() 65 " = -1 EBADF (%m)\n", &tty); in main()
|
/external/squashfs-tools/squashfs-tools/ |
D | progressbar.c | 97 static int tty = -1; in progress_bar() local 110 if(tty == -1) in progress_bar() 111 tty = isatty(STDOUT_FILENO); in progress_bar() 112 if(!tty) { in progress_bar()
|