/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | sshpty.c | 63 name = ttyname(*ttyfd); in pty_allocate() 154 name = ttyname(*ptyfd); in pty_allocate() 255 pty_release(const char *ttyname) in pty_release() argument 257 if (chown(ttyname, (uid_t) 0, (gid_t) 0) < 0) in pty_release() 258 error("chown %.100s 0 0 failed: %.100s", ttyname, strerror(errno)); in pty_release() 259 if (chmod(ttyname, (mode_t) 0666) < 0) in pty_release() 260 error("chmod %.100s 0666 failed: %.100s", ttyname, strerror(errno)); in pty_release() 266 pty_make_controlling_tty(int *ttyfd, const char *ttyname) in pty_make_controlling_tty() argument 277 fd = open(ttyname, O_RDWR|O_NOCTTY); in pty_make_controlling_tty() 292 error("%.100s: %.100s", ttyname, strerror(errno)); in pty_make_controlling_tty() [all …]
|
H A D | sshlogin.c | 79 record_login(pid_t pid, const char *ttyname, const char *progname, in record_login() argument 110 li = login_alloc_entry(pid, user, remote_name_or_ip, ttyname, progname); in record_login() 118 record_logout(pid_t pid, const char *ttyname, const char *progname, in record_logout() argument 123 li = login_alloc_entry(pid, user, NULL, ttyname, progname); in record_logout()
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | ttyslot.c | 58 if ((tp = ttyname(0)) == NULL && in ttyslot() 59 (tp = ttyname(1)) == NULL && in ttyslot() 60 (tp = ttyname(2)) == NULL) in ttyslot()
|
/titanic_50/usr/src/cmd/ssh/include/ |
H A D | sshlogin.h | 27 record_login(pid_t pid, const char *ttyname, const char *progname, 30 record_logout(pid_t pid, const char *ttyname, const char *progname,
|
H A D | altprivsep.h | 52 void altprivsep_record_login(pid_t pid, const char *ttyname);
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | get_names.c | 48 char *getlogin(), *ttyname(int); 105 my_tty = strrchr(ttyname(0), '/') + 1;
|
/titanic_50/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 405 char ttyname[32]; in findidle() local 407 strcpy(ttyname, "/dev/"); in findidle() 408 strncat(ttyname, name, ln); in findidle() 409 if (stat(ttyname, &stbuf) < 0) in findidle()
|
/titanic_50/usr/src/cmd/login/ |
H A D | login_audit.c | 207 const char *hostname, const char *ttyname, char *optional_text) in audit_failure() argument 232 (void) adt_load_ttyname(ttyname, &p_tid); in audit_failure()
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | bsd-cray.c | 228 ttyn = ttyname(0); in cray_setup() 292 if (ttyname(0) != NULL) { in cray_setup() 493 if (ttyname(0) != NULL) { in cray_setup() 494 debug("cray_setup: ttyname true case, %.100s", ttyname); in cray_setup() 560 debug("cray_setup: ttyname false case, %.100s", ttyname); in cray_setup()
|
/titanic_50/usr/src/cmd/who/ |
H A D | who.c | 397 if ((mytty = ttyname(fileno(stdin))) == NULL && in main() 398 (mytty = ttyname(fileno(stdout))) == NULL && in main() 399 (mytty = ttyname(fileno(stderr))) == NULL) { in main() 789 ttname = ttyname(1); in process()
|
/titanic_50/usr/src/cmd/tty/ |
H A D | tty.c | 67 p = ttyname(0); in main()
|
/titanic_50/usr/src/ucbcmd/biff/ |
H A D | biff.c | 57 char *cp = ttyname(2); in main()
|
/titanic_50/usr/src/cmd/write/ |
H A D | write.c | 157 if ((ownterminal = ttyname(fileno(stdin))) == NULL && in main() 158 (ownterminal = ttyname(fileno(stdout))) == NULL && in main() 159 (ownterminal = ttyname(fileno(stderr))) == NULL) { in main()
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | tty.c | 80 if(!(tty=ttyname(0))) in b_tty()
|
/titanic_50/usr/src/cmd/w/ |
H A D | w.c | 712 char ttyname[64]; in findidle() local 714 (void) strcpy(ttyname, "/dev/"); in findidle() 715 (void) strcat(ttyname, devname); in findidle() 716 if (stat(ttyname, &stbuf) != -1) { in findidle()
|
/titanic_50/usr/src/cmd/mesg/ |
H A D | mesg.c | 79 if ((tty = ttyname(i)) != NULL) in main()
|
/titanic_50/usr/src/cmd/whodo/ |
H A D | whodo.c | 803 char ttyname[64]; in findidle() local 805 (void) strcpy(ttyname, "/dev/"); in findidle() 806 (void) strcat(ttyname, devname); in findidle() 807 if (stat(ttyname, &stbuf) != -1) { in findidle()
|
/titanic_50/usr/src/cmd/troff/ |
H A D | n1.c | 377 extern char *ttyname(); in init2() 380 if ((ttyp=ttyname(j=0)) != 0 || (ttyp=ttyname(j=1)) != 0 || (ttyp=ttyname(j=2)) != 0) in init2() 1225 extern char *ttyname(); in popf() 1244 if (ttyname(ifile) == 0) in popf()
|
/titanic_50/usr/src/lib/libbc/inc/include/ |
H A D | unistd.h | 151 extern char *ttyname(int);
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | scr_ll_dump.c | 61 if ((thistty = ttyname(cur_term->Filedes)) == NULL) in scr_ll_dump()
|
H A D | scr_reset.c | 109 if ((type != 1) && ((ttyname(cur_term->Filedes) == NULL) || in scr_reset()
|
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | scr_dump.c | 158 name = ttyname(cur_term->_ofd); in scr_init()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | interface.c | 192 ttyn = ttyname(fdread); in uteardown() 239 ttyn = ttyname(fdread);
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex_put.c | 1059 if ((tn=ttyname(2)) == NULL && in tostart() 1060 (tn=ttyname(1)) == NULL && in tostart() 1061 (tn=ttyname(0)) == NULL) in tostart()
|
/titanic_50/usr/src/head/ |
H A D | stdlib.h | 286 extern char *ttyname(int);
|