summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-11 19:54:55 -0700
committerElliott Hughes <enh@google.com>2014-07-11 19:54:55 -0700
commit263325d4b0c4c0e2933cb6428475ced16f0a86d5 (patch)
tree2b445382f013080f59e3f1709a049b8241a2f639
parentb8e82b5e729a1f6e30ee9593b2dbcbb3ad623874 (diff)
downloadbionic-263325d4b0c4c0e2933cb6428475ced16f0a86d5.zip
bionic-263325d4b0c4c0e2933cb6428475ced16f0a86d5.tar.gz
bionic-263325d4b0c4c0e2933cb6428475ced16f0a86d5.tar.bz2
Define three prctl constants that went missing from uapi.
Change-Id: Ib81846ddefe9a75e02151c6592ed99b1f8ec5858
-rw-r--r--libc/include/sys/prctl.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/include/sys/prctl.h b/libc/include/sys/prctl.h
index 00e5837..391c22a 100644
--- a/libc/include/sys/prctl.h
+++ b/libc/include/sys/prctl.h
@@ -31,6 +31,25 @@
#include <linux/prctl.h>
#include <sys/cdefs.h>
+/* These should appear in the uapi headers at some point, but they're not there right now. */
+#if !defined(PR_SET_TIMERSLACK_PID)
+#define PR_SET_TIMERSLACK_PID 41
+#else
+#error PR_SET_TIMERSLACK_PID defined twice
+#endif
+
+#if !defined(PR_SET_VMA)
+#define PR_SET_VMA 0x53564d41
+#else
+#error PR_SET_VMA defined twice
+#endif
+
+#if !defined(PR_SET_VMA_ANON_NAME)
+#define PR_SET_VMA_ANON_NAME 0
+#else
+#error PR_SET_VMA_ANON_NAME defined twice
+#endif
+
__BEGIN_DECLS
/* IMPORTANT NOTE: This function is declared as taking a variable number