Lines Matching defs:user

27  * the at control dir hierarchy, all files owned by one user
80 User_t* user;
144 Table_t owner; /* user by User_t* */
147 Table_t uid; /* user by uid */
148 Table_t user; /* user by name */
153 int peruser; /* total per user limit */
165 Connection_t con[1]; /* user connections */
188 * return user info given name or uid
192 user(register State_t* state, char* name, unsigned long uid)
202 if (!(usr = name ? (User_t*)dtmatch(state->table.user.handle, name) : (User_t*)dtmatch(state->table.uid.handle, &uid)))
231 dtinsert(state->table.user.handle, usr);
254 own->user = usr;
359 usr = user(state, t, 0);
364 own->user = usr;
438 * reset the queue and associated user access
457 usr = user(state, s, 0);
465 own->user = usr;
500 job->owner->user->pending++;
503 error(0, "%s %s que %s at %s \"%s\"", job->name, fmtuid(job->owner->user->uid), job->queue->name, fmttime(AT_TIME_FORMAT, job->start), job->label);
524 job->owner->user->running--;
527 job->owner->user->pending--;
550 error(0, "%s %s que %s drop \"%s\"", job->name, fmtuid(job->owner->user->uid), job->queue->name, job->label);
591 error(0, "%s %s %lu exit %d \"%s\"", job->name, fmtuid(job->owner->user->uid), job->pid, status, job->label);
636 job->owner->user->running++;
637 job->owner->user->total++;
644 error(0, "%s %s %lu exec \"%s\"", job->name, fmtuid(job->owner->user->uid), job->pid, job->label);
727 sfprintf(vis->state->tmp, " %s", own->user->name);
802 usr = user(state, NiL, con->id.uid);
851 error(ERROR_OUTPUT|0, con->fd, "at service daemon pid %ld user %s", state->con[0].id.pid, fmtuid(state->admin[0]));
865 if (own->user->pending >= HOG)
867 error(ERROR_OUTPUT|2, con->fd, "%s: hog", own->user->name);
1030 neqv(sp, "HOME", job->owner->user->home);
1031 neqv(sp, "LOGNAME", job->owner->user->name);
1032 neqv(sp, "USER", job->owner->user->name);
1045 sfprintf(sp, "mailx -s \"at job status\" %s < $tmp\n", job->owner->user->name);
1073 error(ERROR_OUTPUT|0, con->fd, "%-21s %-*s%7d %-1s %.-8s %s %s", job->name, sizeof(job->label), job->label, job->pid, job->queue->name, job->owner->user->name, fmttime(AT_TIME_FORMAT, job->start), job->period);
1118 for (usr = (User_t*)dtfirst(state->table.user.handle); usr; usr = (User_t*)dtnext(state->table.user.handle, usr))
1403 state->table.owner.discipline.key = offsetof(Owner_t, user);
1418 state->table.user.discipline.key = offsetof(User_t, name);
1419 if (!(state->table.user.handle = dtopen(&state->table.user.discipline, Dtoset)))
1420 error(ERROR_SYSTEM|3, "out of space [user table]");
1424 error(0, "daemon restart pid %ld user %s", state->con[0].id.pid, fmtuid(state->admin[0]));
1426 error(0, "service limited to user %s", fmtuid(limited));