Skip to content

Commit 0fea5dc

Browse files
committed
Add sys/personality.h constants for Linux
1 parent 7c3030f commit 0fea5dc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/unix/linux_like/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,19 @@ pub const WEXITED: ::c_int = 0x00000004;
961961
pub const WCONTINUED: ::c_int = 0x00000008;
962962
pub const WNOWAIT: ::c_int = 0x01000000;
963963

964+
// Options for personality(2).
965+
pub const UNAME26: ::c_int = 0x0020000;
966+
pub const ADDR_NO_RANDOMIZE: ::c_int = 0x0040000;
967+
pub const FDPIC_FUNCPTRS: ::c_int = 0x0080000;
968+
pub const MMAP_PAGE_ZERO: ::c_int = 0x0100000;
969+
pub const ADDR_COMPAT_LAYOUT: ::c_int = 0x0200000;
970+
pub const READ_IMPLIES_EXEC: ::c_int = 0x0400000;
971+
pub const ADDR_LIMIT_32BIT: ::c_int = 0x0800000;
972+
pub const SHORT_INODE: ::c_int = 0x1000000;
973+
pub const WHOLE_SECONDS: ::c_int = 0x2000000;
974+
pub const STICKY_TIMEOUTS: ::c_int = 0x4000000;
975+
pub const ADDR_LIMIT_3GB: ::c_int = 0x8000000;
976+
964977
// Options set using PTRACE_SETOPTIONS.
965978
pub const PTRACE_O_TRACESYSGOOD: ::c_int = 0x00000001;
966979
pub const PTRACE_O_TRACEFORK: ::c_int = 0x00000002;

0 commit comments

Comments
 (0)