/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 644 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 D | rpc.rusersd.c | 403 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 D | whodo.c | 869 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 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()
|
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 401 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 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()
|
/illumos-gate/usr/src/cmd/tty/ |
H A D | tty.c | 64 p = ttyname(0); in main()
|
/illumos-gate/usr/src/ucbcmd/biff/ |
H A D | biff.c | 55 char *cp = ttyname(2); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tty.c | 88 if(!(tty=ttyname(0))) in b_tty()
|
H A D | fds.c | 250 if (isatty(i) && (s = ttyname(i))) in b_fds()
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n1.c | 376 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 D | mesg.c | 77 if ((tty = ttyname(i)) != NULL) in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | get_names.c | 47 char *getlogin(), *ttyname(int);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | scr_ll_dump.c | 59 if ((thistty = ttyname(cur_term->Filedes)) == NULL) in scr_ll_dump()
|
H A D | scr_reset.c | 107 if ((type != 1) && ((ttyname(cur_term->Filedes) == NULL) || in scr_reset()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | interface.c | 191 ttyn = ttyname(fdread); in uteardown() 238 ttyn = ttyname(fdread);
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | scr_dump.c | 156 name = ttyname(cur_term->_ofd); in scr_init()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_put.c | 1058 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 D | ttyname.c | 65 #pragma weak _ttyname = ttyname 774 ttyname(int f) in ttyname() function
|
/illumos-gate/usr/src/cmd/Adm/ |
H A D | ttysrch | 24 # This file is used by ttyname(3C) to minimize search time
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | timex.c | 156 sprintf(ttyid, "-l %s", ttyname(0)+5); in main()
|
/illumos-gate/usr/src/head/ |
H A D | stdlib.h | 307 extern char *ttyname(int);
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | interface.c | 140 ttyn = ttyname(fdread); in uteardown()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 925 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 D | su.c | 269 if ((ttyn = ttyname(0)) == NULL) in main() 270 if ((ttyn = ttyname(1)) == NULL) in main() 271 if ((ttyn = ttyname(2)) == NULL) in main()
|