Lines Matching refs:utp
111 struct utmpx *utp; in mailfor() local
131 while ((utp = getutxent()) != NULL) in mailfor()
132 if (utp->ut_type == USER_PROCESS && !strcmp(utp->ut_user, name)) in mailfor()
133 notify(utp, buf, offset, folder); in mailfor()
140 notify(struct utmpx *utp, char file[], off_t offset, int folder) in notify() argument
147 const char *s = utp->ut_line; in notify()
154 utp->ut_line); in notify()
157 (void)snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, utp->ut_line); in notify()
159 dsyslog(LOG_DEBUG, "%s: wrong mode on %s", utp->ut_user, tty); in notify()
162 dsyslog(LOG_DEBUG, "notify %s on %s", utp->ut_user, tty); in notify()
180 if ((p = getpwnam(utp->ut_user)) == NULL || in notify()
189 cr, utp->ut_user, (int)sizeof(hostname), hostname, in notify()