|
Packit |
6c4009 |
/* Definitions for POSIX memory map interface. Linux/s390 version.
|
|
Packit |
6c4009 |
Copyright (C) 2000-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _SYS_MMAN_H
|
|
Packit |
6c4009 |
# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* The following definitions basically come from the kernel headers.
|
|
Packit |
6c4009 |
But the kernel header is not namespace clean. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* These are Linux-specific. */
|
|
Packit |
6c4009 |
#ifdef __USE_MISC
|
|
Packit |
6c4009 |
# define MAP_GROWSDOWN 0x00100 /* Stack-like segment. */
|
|
Packit |
6c4009 |
# define MAP_DENYWRITE 0x00800 /* ETXTBSY */
|
|
Packit |
6c4009 |
# define MAP_EXECUTABLE 0x01000 /* Mark it as an executable. */
|
|
Packit |
6c4009 |
# define MAP_LOCKED 0x02000 /* Lock the mapping. */
|
|
Packit |
6c4009 |
# define MAP_NORESERVE 0x04000 /* Don't check for reservations. */
|
|
Packit |
6c4009 |
# define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
|
|
Packit |
6c4009 |
# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
|
|
Packit |
6c4009 |
# define MAP_STACK 0x20000 /* Allocation is for a stack. */
|
|
Packit |
6c4009 |
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
|
Packit |
6c4009 |
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
|
Packit |
6c4009 |
faults for the mapping. */
|
|
Packit |
6c4009 |
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
|
Packit |
6c4009 |
underlying mapping. */
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Include generic Linux declarations. */
|
|
Packit |
6c4009 |
#include <bits/mman-linux.h>
|