Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 25 of 207) sorted by relevance

123456789

/external/openssh/
Dsshpty.c91 pty_release(const char *tty) in pty_release() argument
94 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) in pty_release()
95 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); in pty_release()
96 if (chmod(tty, (mode_t) 0666) < 0) in pty_release()
97 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); in pty_release()
104 pty_make_controlling_tty(int *ttyfd, const char *tty) in pty_make_controlling_tty() argument
112 fd = open(tty, O_RDWR|O_NOCTTY); in pty_make_controlling_tty()
127 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty()
162 fd = open(tty, O_RDWR); in pty_make_controlling_tty()
164 error("%.100s: %.100s", tty, strerror(errno)); in pty_make_controlling_tty()
[all …]
Dsshlogin.c127 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()
Dsession.c684 pty_make_controlling_tty(&ttyfd, s->tty); in do_exec_pty()
767 record_utmp_only(pid, s->tty, s->pw->pw_name, in do_pre_login()
782 char session_type[1024], *tty = NULL; in do_exec() local
812 tty = s->tty; in do_exec()
813 if (strncmp(tty, "/dev/", 5) == 0) in do_exec()
814 tty += 5; in do_exec()
819 tty == NULL ? "" : " on ", in do_exec()
820 tty == NULL ? "" : tty, in do_exec()
878 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, in do_login()
1253 child_set_env(&env, &envsize, "SSH_TTY", s->tty); in do_setup_env()
[all …]
Dauth-sia.c83 session_setup_sia(struct passwd *pw, char *tty) in session_setup_sia() argument
91 tty, 0, NULL) != SIASUCCESS) in session_setup_sia()
Dloginrec.c843 int tty; in utmp_write_direct() local
850 tty=0; in utmp_write_direct()
853 tty++; in utmp_write_direct()
865 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ in utmp_write_direct()
869 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { in utmp_write_direct()
872 pos = (off_t)tty * sizeof(struct utmp); in utmp_write_direct()
880 __func__, tty, UTMP_FILE); in utmp_write_direct()
902 __func__, tty, UTMP_FILE); in utmp_write_direct()
Dmonitor.c1496 record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid, in mm_record_login()
1506 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd); in mm_session_close()
1528 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); in mm_answer_pty()
1531 pty_setowner(authctxt->pw, s->tty); in mm_answer_pty()
1534 buffer_put_cstring(m, s->tty); in mm_answer_pty()
1567 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd); in mm_answer_pty()
1583 char *tty; in mm_answer_pty_cleanup() local
1587 tty = buffer_get_string(m, NULL); in mm_answer_pty_cleanup()
1588 if ((s = session_by_tty(tty)) != NULL) in mm_answer_pty_cleanup()
1591 free(tty); in mm_answer_pty_cleanup()
DOVERVIEW105 code in ttymodes.c to encode current tty modes. Finally it
115 Pseudo-tty manipulation and tty modes
117 - Code to allocate and use a pseudo tty is in pty.c. Code to
/external/ppp/pppd/
Dsession.h67 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/libvncserver/x11vnc/misc/
Dvcinject.pl24 $tty = shift;
25 $tty = "/dev/tty$tty" if $tty =~ /^\d+$/;
27 warn "strange tty device: $tty\n" if $tty !~ m,^/dev/tty\d+$,;
29 open(TTY, ">$tty") || die "open $tty: $!\n";
/external/toybox/toys/posix/
Dtty.c27 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/libvncserver/vncterm/
DLinuxVNC.c7 static int tty=2; variable
56 sprintf(device,"/dev/tty%d",tty); in do_key()
91 if((tty=atoi(argv[1]))<1) { in main()
102 sprintf(tty_device,"/dev/tty%d",tty); in main()
114 sprintf(title,"LinuxVNC: /dev/tty%d",tty); in main()
139 sprintf(tty_device,"/dev/vcs%d",tty); in main()
141 sprintf(tty_device,"/dev/vcsa%d",tty); in main()
DREADME4 LinuxVNC <tty number>
6 root privileges, or at least be in the "tty" group, because
/external/libvncserver/x11vnc/
Dlinuxfb.c63 int do_input, have_uinput, tty = -1; in console_guess() local
137 tty = 0; in console_guess()
142 tty = n; in console_guess()
145 tty = n; in console_guess()
152 sprintf(tmp, "/dev/vcsa%d", tty); in console_guess()
243 if (tty >=0 && tty < 64) { in console_guess()
245 sprintf(pipeinput_str, "CONSOLE%d", tty); in console_guess()
/external/selinux/policycoreutils/audit2allow/
Dtest.log4 …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/selinux/sepolgen/tests/test_data/
Daudit.log2 …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 …]
Dshort.log2 …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-…
Dhttpd.log3154 …3 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) comm="dhcdbd…
3159 …3 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) comm="dhcdbd…
3163 …2 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) comm="dbus-d…
3166 …2 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) comm="dbus-d…
3185 … pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 comm="dhcdbd" …
3187 … pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 comm="dhcdbd" …
3202 … pid=8111 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 comm="dhcdbd" …
3209 … pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="dhcdbd…
3213 … pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="dhcdbd…
3215 … pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="dhcdbd…
[all …]
/external/squashfs-tools/squashfs-tools/
Dprogressbar.c97 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()
/external/strace/tests/
Dioctl.c29 struct termios tty; in main() local
32 if (ioctl(-1, TCGETS, &tty) != -1 || in main()
/external/openssh/openbsd-compat/
Dport-linux.c139 ssh_selinux_setup_pty(char *pwname, const char *tty) in ssh_selinux_setup_pty() argument
148 debug3("%s: setting TTY context on %s", __func__, tty); in ssh_selinux_setup_pty()
154 if (getfilecon(tty, &old_tty_ctx) == -1) { in ssh_selinux_setup_pty()
166 if (setfilecon(tty, new_tty_ctx) != 0) in ssh_selinux_setup_pty()
/external/llvm/test/Linker/
D2004-05-07-TypeResolution2.ll9 define internal void @f1(%struct1* %tty) {
11 %tmp.2.i.i = getelementptr %struct1, %struct1* %tty, i64 0, i32 1 ; <void (%struct2*)**> [#uses=1]
/external/libpcap/
DREADME.aix43 system to crash. DLPI is included in the fileset bos.rte.tty. I
45 had to upgrade to bos.rte.tty 4.3.2.4:
47 lslpp -l bos.rte.tty
49 bos.rte.tty 4.3.2.4 COMMITTED Base TTY Support and Commands
/external/toybox/scripts/
Druntest.sh44 if tty -s <&1
158 mknod tmpdir4chroot/dev/tty c 5 0
/external/toybox/toys/pending/
Dps.c71 dev_t tty;
121 if (!(toys.optflags&(FLAG_a|FLAG_d|FLAG_A|FLAG_e)) && TT.tty!=slot[4]) in do_ps()
246 TT.tty = st.st_rdev; in ps_main()
/external/libedit/src/
DMakefile.am41 prompt.c read.c refresh.c search.c sig.c terminal.c tty.c vi.c \
45 search.h sig.h sys.h terminal.h tty.h vis.h filecomplete.h \

123456789