Searched refs:ppri_tbl (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/cmd/lp/lib/users/ |
H A D | usermgmt.c | 40 static struct user_priority *ppri_tbl; variable 50 if (!(ppri_tbl = ld_priority_file(Lp_Users))) in putuser() 55 if (!add_user(ppri_tbl, user, pri_s->priority_limit)) in putuser() 62 output_tbl(fd, ppri_tbl); in putuser() 80 if (!(ppri_tbl = ld_priority_file(Lp_Users))) in getuser() 87 if (bang_searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in getuser() 93 usr.priority_limit = ppri_tbl->deflt_limit; in getuser() 103 if (!(ppri_tbl = ld_priority_file(Lp_Users))) in deluser() 109 del_user(ppri_tbl, user); in deluser() 114 output_tbl(fd, ppri_tbl); in deluser() [all …]
|
H A D | storepri.c | 46 print_tbl(struct user_priority * ppri_tbl) in print_tbl() argument 50 printf(gettext("Default priority: %d\n"), ppri_tbl->deflt); in print_tbl() 51 printf(gettext("Priority limit for users not listed below: %d\n"), ppri_tbl->deflt_limit); in print_tbl() 55 if (ppri_tbl->users[limit - PRI_MIN]) in print_tbl() 58 fdprintlist(1, ppri_tbl->users[limit - PRI_MIN]); in print_tbl() 69 output_tbl(int fd, struct user_priority *ppri_tbl) in output_tbl() argument 73 fdprintf(fd, "%d\n%d:\n", ppri_tbl->deflt, ppri_tbl->deflt_limit); in output_tbl() 76 if (ppri_tbl->users[limit - PRI_MIN]) in output_tbl() 79 fdprintlist(fd, ppri_tbl->users[limit - PRI_MIN]); in output_tbl()
|
H A D | loadpri.c | 174 int add_user ( struct user_priority * ppri_tbl, char * user, int limit ) in add_user() argument 178 addlist (&(ppri_tbl->users[limit - PRI_MIN]), user); in add_user() 243 int del_user ( struct user_priority * ppri_tbl, char * user ) in del_user() argument 248 if (searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in del_user() 250 dellist (&(ppri_tbl->users[limit - PRI_MIN]), user); in del_user()
|
/titanic_44/usr/src/cmd/lp/cmd/ |
H A D | lpusers.c | 63 struct user_priority *ppri_tbl, *ld_priority_file(); in main() local 154 if (!(ppri_tbl = ld_priority_file(PRIORITY))) { in main() 166 print_tbl(ppri_tbl); in main() 173 if (del_user(ppri_tbl, user) && (limit == -1)) in main() 176 if (add_user(ppri_tbl, user, limit)) in main() 181 ppri_tbl->deflt = deflt; in main() 183 ppri_tbl->deflt_limit = limit; in main() 189 output_tbl(fd, ppri_tbl); in main()
|