strace/xlat/mlockall_flags.in
Dmitry V. Levin a6082255ac xlat: fix MCL_* fallback definitions on alpha, ppc, ppc64, and sparc
On these architectures, MCL_* constants are different.

* xlat/socketlayers.in [__alpha__ || __powerpc__ || __powerpc64__
|| __sparc__] (MCL_CURRENT, MCL_FUTURE, MCL_ONFAULT): Define to 0x2000,
0x4000, and 0x8000, respectively.
2018-04-29 21:59:55 +00:00

10 lines
201 B
Plaintext

#if defined __alpha__ || defined __powerpc__ || defined __powerpc64__ || defined __sparc__
MCL_CURRENT 0x2000
MCL_FUTURE 0x4000
MCL_ONFAULT 0x8000
#else
MCL_CURRENT 1
MCL_FUTURE 2
MCL_ONFAULT 4
#endif