Lines Matching defs:utp
111 struct utmpx *utp;
116 char buf[sizeof(_PATH_MAILDIR) + sizeof(utp->ut_user) + 1];
117 char buf2[sizeof(_PATH_MAILDIR) + sizeof(utp->ut_user) + 1];
127 sprintf(buf, "%s/%.*s", _PATH_MAILDIR, (int)sizeof(utp->ut_user),
131 (int)sizeof(utp->ut_user), file);
136 while ((utp = getutxent()) != NULL)
137 if (utp->ut_type == USER_PROCESS && !strcmp(utp->ut_user, name))
138 notify(utp, file, offset, folder);
145 notify(struct utmpx *utp, char file[], off_t offset, int folder)
152 const char *s = utp->ut_line;
159 utp->ut_line);
163 _PATH_DEV, (int)sizeof(utp->ut_line), utp->ut_line);
165 dsyslog(LOG_DEBUG, "%s: wrong mode on %s", utp->ut_user, tty);
168 dsyslog(LOG_DEBUG, "notify %s on %s", utp->ut_user, tty);
186 if ((p = getpwnam(utp->ut_user)) == NULL ||
197 cr, utp->ut_user, (int)sizeof(hostname), hostname,