Clang support for gnu_inline attribute
[uclibc-ng.git] / libc / sysdeps / linux / nds32 / bits / mman.h
blobc1b263a4c0eb108c6f8c20208c1849467e2aee27
1 /*
2 * Copyright (C) 2016 Andes Technology, Inc.
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 */
6 /* Definitions for POSIX memory map interface. Linux/NDS32 version.
7 Copyright (C) 1997-2018 Free Software Foundation, Inc.
9 The GNU C Library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
14 The GNU C Library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public
20 License along with the GNU C Library; if not, write to the Free
21 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 02111-1307 USA. */
24 #ifndef _SYS_MMAN_H
25 # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
26 #endif
28 /* The following definitions basically come from the kernel headers.
29 But the kernel header is not namespace clean. */
31 /* These are Linux-specific. */
32 #ifdef __USE_MISC
33 # define MAP_GROWSDOWN 0x0100 /* stack-like segment */
34 # define MAP_DENYWRITE 0x0800 /* ETXTBSY */
35 # define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
36 # define MAP_LOCKED 0x2000 /* pages are locked */
37 # define MAP_NORESERVE 0x4000 /* don't check for reservations */
38 # define MAP_POPULATE 0x08000 /* populate (prefault) pagetables */
39 # define MAP_NONBLOCK 0x10000 /* do not block on IO */
40 # define MAP_STACK 0x20000 /* Allocation is for a stack. */
41 # define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
42 #endif
44 /* Include generic Linux declarations. */
45 #include <bits/mman-linux.h>