Lines Matching defs:usr
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
84 #define MAIL "/usr/bin/mail" /* mail program to use */
122 isn't /usr/bin/sh, you can't use cron."
187 struct usr *u; /* ptr to the owner (usr) of this event */
208 struct usr {
217 struct event *ctevents; /* list of this usr's crontab events */
218 struct event *atevents; /* list of this usr's at events */
219 struct usr *nextusr;
237 struct usr *rusr; /* pointer to usr struct */
257 static struct usr *uhead; /* ptr to the list of users */
269 #define ROOTPATH "PATH=/usr/sbin:/usr/bin"
270 #define NONROOTPATH "PATH=/usr/bin:"
283 "SHELL=/usr/bin/sh",
301 static void add_atevent(struct usr *, char *, time_t, int);
302 static void rm_ctevents(struct usr *);
313 static struct usr *find_usr(char *);
318 static void readcron(struct usr *, time_t);
320 static void free_if_unused(struct usr *);
327 static void mail_result(struct usr *p, struct runinfo *pr, size_t filesize);
345 static int set_user_cred(const struct usr *, struct project *);
384 static int verify_user_cred(struct usr *u);
405 static void clean_out_atjobs(struct usr *u);
406 static void clean_out_ctab(struct usr *u);
407 static void clean_out_user(struct usr *u);
422 static struct usr *create_ulist(char *, int);
425 static void update_atevent(struct usr *, char *, time_t, int);
433 struct usr *u;
834 struct usr *
837 struct usr *u;
839 u = xcalloc(1, sizeof (struct usr));
858 struct usr *u;
879 struct usr *u;
899 struct usr *u;
925 * users with a login shell of /usr/bin/sh to use cron
996 struct usr *u;
1037 * users with a login shell of /usr/bin/sh to use cron
1067 add_atevent(struct usr *u, char *job, time_t tim, int jobtype)
1094 update_atevent(struct usr *u, char *name, time_t tim, int jobtype)
1120 readcron(struct usr *u, time_t reftime)
1838 * 0 0 1,15,31 1,2,3,4,5 * /usr/bin....
2043 free_if_unused(struct usr *u)
2045 struct usr *cur, *prev;
2047 * To make sure a usr structure is idle we must check that
2051 * pointer to the usr structure).
2056 (void) fprintf(stderr, "%s removed from usr list\n", u->name);
2081 struct usr *u;
2112 struct usr *u;
2125 rm_ctevents(struct usr *u)
2160 static struct usr *
2163 struct usr *u;
2654 struct usr *p;
2708 mail_result(struct usr *p, struct runinfo *pr, size_t filesize)
3194 verify_user_cred(struct usr *u)
3287 set_user_cred(const struct usr *u, struct project *pproj)
3336 clean_out_user(struct usr *u)
3348 clean_out_atjobs(struct usr *u)
3373 clean_out_ctab(struct usr *u)
3440 struct usr *u = uhead;