From 263325d4b0c4c0e2933cb6428475ced16f0a86d5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 11 Jul 2014 19:54:55 -0700 Subject: [PATCH] Define three prctl constants that went missing from uapi. Change-Id: Ib81846ddefe9a75e02151c6592ed99b1f8ec5858 --- libc/include/sys/prctl.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libc/include/sys/prctl.h b/libc/include/sys/prctl.h index 00e583742..391c22a77 100644 --- a/libc/include/sys/prctl.h +++ b/libc/include/sys/prctl.h @@ -31,6 +31,25 @@ #include #include +/* 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 -- 2.11.0