2000-02-04 16:40:32 +00:00
|
|
|
/* Definitions for POSIX memory map interface. Linux/MIPS version.
|
2016-01-04 16:05:18 +00:00
|
|
|
Copyright (C) 1997-2016 Free Software Foundation, Inc.
|
1997-08-10 18:30:12 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:56:23 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1997-08-10 18:30:12 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:56:23 +00:00
|
|
|
Lesser General Public License for more details.
|
1997-08-10 18:30:12 +00:00
|
|
|
|
2001-07-06 04:56:23 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-03-09 23:56:38 +00:00
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1997-08-10 18:30:12 +00:00
|
|
|
|
|
|
|
#ifndef _SYS_MMAN_H
|
1997-11-26 04:14:44 +00:00
|
|
|
# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
|
1997-08-10 18:30:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The following definitions basically come from the kernel headers.
|
|
|
|
But the kernel header is not namespace clean. */
|
|
|
|
|
|
|
|
/* These are Linux-specific. */
|
|
|
|
#ifdef __USE_MISC
|
2001-03-27 02:43:47 +00:00
|
|
|
# define MAP_NORESERVE 0x0400 /* don't check for reservations */
|
|
|
|
# define MAP_GROWSDOWN 0x1000 /* stack-like segment */
|
2000-02-04 16:38:20 +00:00
|
|
|
# define MAP_DENYWRITE 0x2000 /* ETXTBSY */
|
2001-03-27 02:43:47 +00:00
|
|
|
# define MAP_EXECUTABLE 0x4000 /* mark it as an executable */
|
|
|
|
# define MAP_LOCKED 0x8000 /* pages are locked */
|
2003-03-07 09:46:33 +00:00
|
|
|
# define MAP_POPULATE 0x10000 /* populate (prefault) pagetables */
|
|
|
|
# define MAP_NONBLOCK 0x20000 /* do not block on IO */
|
2012-03-28 12:37:21 +00:00
|
|
|
# define MAP_STACK 0x40000 /* Allocation is for a stack. */
|
|
|
|
# define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
|
1997-08-10 18:30:12 +00:00
|
|
|
#endif
|
|
|
|
|
2013-03-06 16:36:37 +00:00
|
|
|
#define __MAP_ANONYMOUS 0x0800
|
2006-05-05 14:17:22 +00:00
|
|
|
|
2013-03-06 16:36:37 +00:00
|
|
|
/* Include generic Linux declarations. */
|
|
|
|
#include <bits/mman-linux.h>
|
2006-05-05 14:17:22 +00:00
|
|
|
|
2013-03-06 16:36:37 +00:00
|
|
|
#ifdef __USE_MISC
|
|
|
|
# define MAP_RENAME MAP_ANONYMOUS
|
2006-05-05 14:17:22 +00:00
|
|
|
#endif
|