summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-12 03:00:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-07-10 21:09:57 +0000
commit57a5b3380a8834ecb4a32d01433a3127454443d7 (patch)
tree2b445382f013080f59e3f1709a049b8241a2f639
parentb8e82b5e729a1f6e30ee9593b2dbcbb3ad623874 (diff)
parent263325d4b0c4c0e2933cb6428475ced16f0a86d5 (diff)
downloadbionic-57a5b3380a8834ecb4a32d01433a3127454443d7.zip
bionic-57a5b3380a8834ecb4a32d01433a3127454443d7.tar.gz
bionic-57a5b3380a8834ecb4a32d01433a3127454443d7.tar.bz2
Merge "Define three prctl constants that went missing from uapi."
-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