Browse Source

add missing rlimit macros

Rich Felker 14 năm trước cách đây
mục cha
commit
209f2bbd95
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      include/sys/resource.h

+ 8 - 0
include/sys/resource.h

@@ -67,7 +67,15 @@ int setpriority (int, id_t, int);
 #define RLIMIT_NPROC   6
 #define RLIMIT_MEMLOCK 8
 #define RLIMIT_LOCKS   10
+#define RLIMIT_SIGPENDING 11
+#define RLIMIT_MSGQUEUE 12
+#define RLIMIT_NICE    13
+#define RLIMIT_RTPRIO  14
+#define RLIMIT_NLIMITS 15
 
+#ifdef _GNU_SOURCE
+#define RLIMT_NLIMIT RLIMIT_NLIMITS
+#endif
 
 
 #endif