1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker /* 3*49cdfc7eSAndroid Build Coastguard Worker * Copyright (c) 2017 Richard Palethorpe <[email protected]> 4*49cdfc7eSAndroid Build Coastguard Worker */ 5*49cdfc7eSAndroid Build Coastguard Worker 6*49cdfc7eSAndroid Build Coastguard Worker /* In the Linux kernel and glibc enums are (mostly) used for the constants, 7*49cdfc7eSAndroid Build Coastguard Worker * but in musl macros are used. 8*49cdfc7eSAndroid Build Coastguard Worker */ 9*49cdfc7eSAndroid Build Coastguard Worker 10*49cdfc7eSAndroid Build Coastguard Worker #ifndef LAPI_PERSONALITY_H__ 11*49cdfc7eSAndroid Build Coastguard Worker #define LAPI_PERSONALITY_H__ 12*49cdfc7eSAndroid Build Coastguard Worker 13*49cdfc7eSAndroid Build Coastguard Worker #include <sys/personality.h> 14*49cdfc7eSAndroid Build Coastguard Worker 15*49cdfc7eSAndroid Build Coastguard Worker #ifndef UNAME26 16*49cdfc7eSAndroid Build Coastguard Worker # define UNAME26 0x0020000 17*49cdfc7eSAndroid Build Coastguard Worker #endif 18*49cdfc7eSAndroid Build Coastguard Worker 19*49cdfc7eSAndroid Build Coastguard Worker #ifndef READ_IMPLIES_EXEC 20*49cdfc7eSAndroid Build Coastguard Worker # define READ_IMPLIES_EXEC 0x0400000 21*49cdfc7eSAndroid Build Coastguard Worker #endif 22*49cdfc7eSAndroid Build Coastguard Worker 23*49cdfc7eSAndroid Build Coastguard Worker #endif /* LAPI_PERSONALITY_H__ */ 24