fix issue with excessive mremap syscalls on realloc
[musl] / include / sys / resource.h
index a9ec3bc..b918902 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef        _SYS_RESOURCE_H
 #define        _SYS_RESOURCE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define __NEED_id_t
 #define __NEED_time_t
 #define __NEED_struct_timeval
@@ -67,7 +71,17 @@ 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
 
+#define RLIM_NLIMITS RLIMIT_NLIMITS
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif