blob: 4c0f4417c1cced956a3ece72a9b4d62466e9b604 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Mon, 13 Mar 2017 18:43:37 +0100
Subject: [PATCH] missing: define PR_SET_MM*
These were all introduced before kernel v3.4
Not for upstream, but needed for host-systemd.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
src/basic/missing.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/src/basic/missing.h b/src/basic/missing.h
index 54ee7fa91414..3bebd8d59e47 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -1024,6 +1024,25 @@ static inline int syncfs(int fd)
#define BINFMTFS_MAGIC 0x42494e4d
#endif
+#ifndef PR_SET_MM
+#define PR_SET_MM 35
+# define PR_SET_MM_START_CODE 1
+# define PR_SET_MM_END_CODE 2
+# define PR_SET_MM_START_DATA 3
+# define PR_SET_MM_END_DATA 4
+# define PR_SET_MM_START_STACK 5
+# define PR_SET_MM_START_BRK 6
+# define PR_SET_MM_BRK 7
+# define PR_SET_MM_ARG_START 8
+# define PR_SET_MM_ARG_END 9
+# define PR_SET_MM_ENV_START 10
+# define PR_SET_MM_ENV_END 11
+# define PR_SET_MM_AUXV 12
+# define PR_SET_MM_EXE_FILE 13
+# define PR_SET_MM_MAP 14
+# define PR_SET_MM_MAP_SIZE 15
+#endif
+
#ifndef IPV6_UNICAST_IF
#define IPV6_UNICAST_IF 76
#endif
|