123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef _SYS_MMAN_H
- # error "Never use <bits/mman-shared.h> directly; include <sys/mman.h> instead."
- #endif
- #ifdef __USE_GNU
- # ifndef MFD_CLOEXEC
- # define MFD_CLOEXEC 1U
- # define MFD_ALLOW_SEALING 2U
- # define MFD_HUGETLB 4U
- # endif
- # ifndef MLOCK_ONFAULT
- # define MLOCK_ONFAULT 1U
- # endif
- # ifndef PKEY_DISABLE_ACCESS
- # define PKEY_DISABLE_ACCESS 0x1
- # define PKEY_DISABLE_WRITE 0x2
- # endif
- __BEGIN_DECLS
- int memfd_create (const char *__name, unsigned int __flags) __THROW;
- int mlock2 (const void *__addr, size_t __length, unsigned int __flags) __THROW;
- int pkey_alloc (unsigned int __flags, unsigned int __access_rights) __THROW;
- int pkey_set (int __key, unsigned int __access_rights) __THROW;
- int pkey_get (int _key) __THROW;
- int pkey_free (int __key) __THROW;
- int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) __THROW;
- __END_DECLS
- #endif
|