Lines Matching defs:resource
21 * Display/change(+runprogram)/eval resource limits.
42 #include <sys/resource.h>
65 const char * inf; /* Name used for 'unlimited' resource */
251 * One letter for each resource levels.
253 * letter index being equal to the resource number.
254 * If sys/resource.h defines are changed, this needs
265 static void getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp);
266 static void setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp);
289 /* init resource tables */
371 /* Get current resource values */
394 /* If we have a login class, update resource table from that */
749 getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp)
759 name[4] = resource;
769 setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp)
778 name[4] = resource;