1 #ifndef _SYS_RESOURCE_H_
2 #define _SYS_RESOURCE_H_
4 #include <sys/featuretest.h>
8 * Process priority specifications to get/setpriority.
13 #define PRIO_PROCESS 0
23 #define RLIMIT_FSIZE 4
24 #define RLIMIT_NOFILE 5
25 #define RLIMIT_STACK 6
27 #define RLIMIT_VMEM RLIMIT_AS /* common alias */
29 #if defined(_NETBSD_SOURCE)
30 #define RLIM_NLIMITS 8 /* number of resource limits */
33 #define RLIM_INFINITY ((rlim_t) -1)
34 #define RLIM_SAVED_CUR RLIM_INFINITY
35 #define RLIM_SAVED_MAX RLIM_INFINITY
43 #include <sys/cdefs.h>
46 int getpriority(int, int);
47 int getrlimit(int, struct rlimit
*);
48 int setpriority(int, int, int);
51 #endif /* !_SYS_RESOURCE_H_ */