| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include_next <sys/prctl.h> /* IWYU pragma: export */ |
| 5 |
|
| 6 |
/* musl's sys/prctl.h does not include linux/prctl.h, and also we cannot include with linux/prctl.h. |
| 7 |
* Hence, we need to provide some missing definitions. */ |
| 8 |
|
| 9 |
#ifndef PR_SET_MDWE |
| 10 |
#define PR_SET_MDWE 65 |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifndef PR_MDWE_REFUSE_EXEC_GAIN |
| 14 |
#define PR_MDWE_REFUSE_EXEC_GAIN (1UL << 0) |
| 15 |
#endif |
| 16 |
|
| 17 |
#ifndef PR_SET_MEMORY_MERGE |
| 18 |
#define PR_SET_MEMORY_MERGE 67 |
| 19 |
#endif |
| 20 |
|
| 21 |
#ifndef PR_THP_DISABLE_EXCEPT_ADVISED |
| 22 |
#define PR_THP_DISABLE_EXCEPT_ADVISED (1 << 1) |
| 23 |
#endif |