missing: add memfd related definitions to missing_mman.h

This commit is contained in:
Yu Watanabe 2018-12-06 06:44:47 +01:00
parent d7330b60a9
commit c8a363eb15
3 changed files with 14 additions and 8 deletions

View File

@ -105,6 +105,7 @@ basic_sources = files('''
missing_input.h
missing_keyctl.h
missing_magic.h
missing_mman.h
missing_network.h
missing_prctl.h
missing_resource.h

View File

@ -9,14 +9,6 @@
#include <stdlib.h>
#include <sys/syscall.h>
#ifndef MFD_ALLOW_SEALING
#define MFD_ALLOW_SEALING 0x0002U
#endif
#ifndef MFD_CLOEXEC
#define MFD_CLOEXEC 0x0001U
#endif
#ifndef TIOCVHANGUP
#define TIOCVHANGUP 0x5437
#endif
@ -142,6 +134,7 @@
#include "missing_fcntl.h"
#include "missing_input.h"
#include "missing_magic.h"
#include "missing_mman.h"
#include "missing_network.h"
#include "missing_prctl.h"
#include "missing_resource.h"

12
src/basic/missing_mman.h Normal file
View File

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sys/mman.h>
#ifndef MFD_ALLOW_SEALING
#define MFD_ALLOW_SEALING 0x0002U
#endif
#ifndef MFD_CLOEXEC
#define MFD_CLOEXEC 0x0001U
#endif