uglify headers for the sake of junk that compiles with gcc -std=c89/-ansi
[musl] / include / sys / resource.h
index 7837adb..cb39923 100644 (file)
@@ -1,10 +1,18 @@
 #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
 
+#ifdef _GNU_SOURCE
+#define __NEED_pid_t
+#endif
+
 #include <bits/alltypes.h>
 
 typedef unsigned long long rlim_t;
@@ -45,6 +53,10 @@ int getrusage (int, struct rusage *);
 int getpriority (int, id_t);
 int setpriority (int, id_t, int);
 
+#ifdef _GNU_SOURCE
+int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
+#endif
+
 #define PRIO_PROCESS 0
 #define PRIO_PGRP    1
 #define PRIO_USER    2
@@ -76,4 +88,8 @@ int setpriority (int, id_t, int);
 #define RLIM_NLIMITS RLIMIT_NLIMITS
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif