fix swprintf handling of nul character in output
[musl] / include / sys / personality.h
index 68eb00c..411dc47 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef _PERSONALITY_H
 #define _PERSONALITY_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define UNAME26            0x0020000
 #define ADDR_NO_RANDOMIZE  0x0040000
+#define FDPIC_FUNCPTRS     0x0080000
 #define MMAP_PAGE_ZERO     0x0100000
 #define ADDR_COMPAT_LAYOUT 0x0200000
 #define READ_IMPLIES_EXEC  0x0400000
@@ -13,6 +19,7 @@
 
 #define PER_LINUX 0
 #define PER_LINUX_32BIT ADDR_LIMIT_32BIT
+#define PER_LINUX_FDPIC FDPIC_FUNCPTRS
 #define PER_SVR4 (1 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO)
 #define PER_SVR3 (2 | STICKY_TIMEOUTS | SHORT_INODE)
 #define PER_SCOSVR3 (3 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE)
@@ -36,4 +43,7 @@
 
 int personality(unsigned long);
 
+#ifdef __cplusplus
+}
+#endif
 #endif