Home
last modified time | relevance | path

Searched refs:ttyname (Results 1 – 25 of 71) sorted by relevance

123

/titanic_50/usr/src/cmd/ssh/sshd/
H A Dsshpty.c63 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 Dsshlogin.c79 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 Dttyslot.c58 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 Dsshlogin.h27 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 Daltprivsep.h52 void altprivsep_record_login(pid_t pid, const char *ttyname);
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_names.c48 char *getlogin(), *ttyname(int);
105 my_tty = strrchr(ttyname(0), '/') + 1;
/titanic_50/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c405 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 Dlogin_audit.c207 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 Dbsd-cray.c228 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 Dwho.c397 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 Dtty.c67 p = ttyname(0); in main()
/titanic_50/usr/src/ucbcmd/biff/
H A Dbiff.c57 char *cp = ttyname(2); in main()
/titanic_50/usr/src/cmd/write/
H A Dwrite.c157 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 Dtty.c80 if(!(tty=ttyname(0))) in b_tty()
/titanic_50/usr/src/cmd/w/
H A Dw.c712 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 Dmesg.c79 if ((tty = ttyname(i)) != NULL) in main()
/titanic_50/usr/src/cmd/whodo/
H A Dwhodo.c803 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 Dn1.c377 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 Dunistd.h151 extern char *ttyname(int);
/titanic_50/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c61 if ((thistty = ttyname(cur_term->Filedes)) == NULL) in scr_ll_dump()
H A Dscr_reset.c109 if ((type != 1) && ((ttyname(cur_term->Filedes) == NULL) || in scr_reset()
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dscr_dump.c158 name = ttyname(cur_term->_ofd); in scr_init()
/titanic_50/usr/src/cmd/bnu/
H A Dinterface.c192 ttyn = ttyname(fdread); in uteardown()
239 ttyn = ttyname(fdread);
/titanic_50/usr/src/cmd/vi/port/
H A Dex_put.c1059 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 Dstdlib.h286 extern char *ttyname(int);

123