Lines Matching defs:ttyn
590 single(const char *cmd, char *ttyn)
595 if (ttyn == NULL)
596 ttyn = findttyname(STDIN_FILENO);
602 ttyn = stripttyname(ttyn);
606 if (strcmp(u->ut_line, ttyn) == 0) {
624 (void) strcpy(entryx.ut_line, ttyn);
700 char *ttyn = ttyname(fd);
702 if (ttyn == NULL)
703 ttyn = "/dev/???";
709 if (((strcmp(ttyn, "/dev/syscon") == 0) ||
710 (strcmp(ttyn, "/dev/systty") == 0)) &&
712 ttyn = "/dev/console";
714 return (ttyn);
718 stripttyname(char *ttyn)
721 if (strncmp(ttyn, "/dev/", sizeof ("/dev/") -1) == 0)
722 return (ttyn + sizeof ("/dev/") - 1);
724 return (ttyn);