| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include_next <sys/mman.h> /* IWYU pragma: export */ |
| 5 |
|
| 6 |
#include <assert.h> |
| 7 |
|
| 8 |
/* since glibc-2.38 */ |
| 9 |
#ifndef MFD_NOEXEC_SEAL |
| 10 |
# define MFD_NOEXEC_SEAL 0x0008U |
| 11 |
#else |
| 12 |
static_assert(MFD_NOEXEC_SEAL == 0x0008U, ""); |
| 13 |
#endif |
| 14 |
|
| 15 |
/* since glibc-2.38 */ |
| 16 |
#ifndef MFD_EXEC |
| 17 |
# define MFD_EXEC 0x0010U |
| 18 |
#else |
| 19 |
static_assert(MFD_EXEC == 0x0010U, ""); |
| 20 |
#endif |
| 21 |
|
| 22 |
/* since Linux 6.13 / glibc-2.42 */ |
| 23 |
#ifndef MADV_GUARD_INSTALL |
| 24 |
# define MADV_GUARD_INSTALL 102 |
| 25 |
#else |
| 26 |
static_assert(MADV_GUARD_INSTALL == 102, ""); |
| 27 |
#endif |