Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/w/
H A Dw.c644 char ttyname[64]; in findidle() local
646 (void) strlcpy(ttyname, "/dev/", sizeof (ttyname)); in findidle()
647 (void) strlcat(ttyname, devname, sizeof (ttyname)); in findidle()
648 if (stat(ttyname, &stbuf) != -1) { in findidle()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c403 char ttyname[32]; in findidle() local
405 strcpy(ttyname, "/dev/"); in findidle()
406 strncat(ttyname, name, ln); in findidle()
407 if (stat(ttyname, &stbuf) < 0) in findidle()
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c869 char ttyname[64]; in findidle() local
871 (void) strlcpy(ttyname, "/dev/", sizeof (ttyname)); in findidle()
872 (void) strlcat(ttyname, devname, sizeof (ttyname)); in findidle()
873 if (stat(ttyname, &stbuf) != -1) { in findidle()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/who/
H A Dwho.c401 if ((mytty = ttyname(fileno(stdin))) == NULL && in main()
402 (mytty = ttyname(fileno(stdout))) == NULL && in main()
403 (mytty = ttyname(fileno(stderr))) == NULL) { in main()
793 ttname = ttyname(1); in process()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/tty/
H A Dtty.c64 p = ttyname(0); in main()
/illumos-gate/usr/src/ucbcmd/biff/
H A Dbiff.c55 char *cp = ttyname(2); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dtty.c88 if(!(tty=ttyname(0))) in b_tty()
H A Dfds.c250 if (isatty(i) && (s = ttyname(i))) in b_fds()
/illumos-gate/usr/src/cmd/troff/
H A Dn1.c376 extern char *ttyname(); in init2()
379 if ((ttyp=ttyname(j=0)) != 0 || (ttyp=ttyname(j=1)) != 0 || (ttyp=ttyname(j=2)) != 0) in init2()
1224 extern char *ttyname(); in popf()
1243 if (ttyname(ifile) == 0) in popf()
/illumos-gate/usr/src/cmd/mesg/
H A Dmesg.c77 if ((tty = ttyname(i)) != NULL) in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_names.c47 char *getlogin(), *ttyname(int);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c59 if ((thistty = ttyname(cur_term->Filedes)) == NULL) in scr_ll_dump()
H A Dscr_reset.c107 if ((type != 1) && ((ttyname(cur_term->Filedes) == NULL) || in scr_reset()
/illumos-gate/usr/src/cmd/bnu/
H A Dinterface.c191 ttyn = ttyname(fdread); in uteardown()
238 ttyn = ttyname(fdread);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dscr_dump.c156 name = ttyname(cur_term->_ofd); in scr_init()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_put.c1058 if ((tn=ttyname(2)) == NULL && in tostart()
1059 (tn=ttyname(1)) == NULL && in tostart()
1060 (tn=ttyname(0)) == NULL) in tostart()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyname.c65 #pragma weak _ttyname = ttyname
774 ttyname(int f) in ttyname() function
/illumos-gate/usr/src/cmd/Adm/
H A Dttysrch24 # This file is used by ttyname(3C) to minimize search time
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c156 sprintf(ttyid, "-l %s", ttyname(0)+5); in main()
/illumos-gate/usr/src/head/
H A Dstdlib.h307 extern char *ttyname(int);
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dinterface.c140 ttyn = ttyname(fdread); in uteardown()
/illumos-gate/usr/src/lib/libbsm/common/
H A Dadt.c925 adt_load_ttyname(const char *ttyname, adt_termid_t **termid) in adt_load_ttyname() argument
952 if (ttyname != NULL && *ttyname != '\0') { in adt_load_ttyname()
953 if (stat(ttyname, &stat_buf) < 0) { in adt_load_ttyname()
/illumos-gate/usr/src/cmd/su/
H A Dsu.c269 if ((ttyn = ttyname(0)) == NULL) in main()
270 if ((ttyn = ttyname(1)) == NULL) in main()
271 if ((ttyn = ttyname(2)) == NULL) in main()

123