Lines Matching defs:user
136 (void)fprintf(stderr, "usage: write user [tty]\n");
141 * utmp_chk - checks that the given user is actually logged in on
145 utmp_chk(char *user, char *tty)
153 strcmp(user, u->ut_user) == 0) {
166 * of the user's terminals with messages enabled, or -1 if the user is
173 search_utmp(char *user, char *tty, char *mytty, uid_t myuid)
186 strcmp(user, u->ut_user) == 0) {
205 errx(1, "%s is not logged in", user);
211 errx(1, "%s has messages disabled", user);
213 warnx("%s is logged in more than once; writing to %s", user, tty);