Lines Matching refs:tty
80 char tty[MAXPATHLEN], *mytty;
97 errx(1, "can't find your tty");
99 errx(1, "can't find your tty's name");
112 search_utmp(argv[0], tty, mytty, myuid);
113 do_write(tty, mytty, myuid);
136 (void)fprintf(stderr, "usage: write user [tty]\n");
142 * the given tty
145 utmp_chk(char *user, char *tty)
149 strncpy(lu.ut_line, tty, sizeof lu.ut_line);
173 search_utmp(char *user, char *tty, char *mytty, uid_t myuid)
199 (void)strlcpy(tty, u->ut_line, MAXPATHLEN);
208 (void)strlcpy(tty, mytty, MAXPATHLEN);
213 warnx("%s is logged in more than once; writing to %s", user, tty);
222 term_chk(char *tty, int *msgsokP, time_t *atimeP, int showerror)
227 (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
242 do_write(char *tty, char *mytty, uid_t myuid)
259 (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);