/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include <sys/mman.h> /* IWYU pragma: export */
-
-#include "forward.h"
+#include_next <sys/mman.h>
/* since glibc-2.38 */
#ifndef MFD_NOEXEC_SEAL
# define MFD_NOEXEC_SEAL 0x0008U
#else
-assert_cc(MFD_NOEXEC_SEAL == 0x0008U);
+_Static_assert(MFD_NOEXEC_SEAL == 0x0008U, "");
#endif
/* since glibc-2.38 */
#ifndef MFD_EXEC
# define MFD_EXEC 0x0010U
#else
-assert_cc(MFD_EXEC == 0x0010U);
+_Static_assert(MFD_EXEC == 0x0010U, "");
#endif
#include "errno-util.h"
#include "fd-util.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "missing_sched.h"
#include "string-util.h"
#include "utf8.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
+#include <sys/mman.h> /* IWYU pragma: export */
+
#include "forward.h"
int memfd_create_wrapper(const char *name, unsigned mode);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include <sys/mman.h>
#include <sys/vfs.h>
#include <unistd.h>
#include "json-util.h"
#include "log.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "mkdir.h"
#include "ordered-set.h"
#include "parse-util.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include <sys/mman.h>
#include <sys/statvfs.h>
#include <unistd.h>
/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#include <sys/mman.h>
-
#include "sd-bus.h"
#include "alloc-util.h"
#include "journal-send.h"
#include "log.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "process-util.h"
#include "socket-util.h"
#include "stdio-util.h"
#include "fd-util.h"
#include "fs-util.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "tmpfile-util.h"
/* When the data is smaller or equal to 64K, try to place the copy in a memfd */
#include "image-policy.h"
#include "log.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "parse-util.h"
#include "pidref.h"
#include "ratelimit.h"
#include "errno-util.h"
#include "fd-util.h"
#include "memfd-util.h"
-#include "missing_mman.h"
#include "tests.h"
TEST(memfd_get_sealed) {