1a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng/****************************************************************************
2a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ****************************************************************************
3a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***
4a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   This header was automatically generated from a Linux kernel header
5a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   of the same name, to make information necessary for userspace to
6a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   call into the kernel available to libc.  It contains only constants,
7a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   structures, and macros generated from the original header, and thus,
8a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   contains no copyrightable information.
9a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***
10a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   To edit the content of this header, modify the corresponding
11a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   run bionic/libc/kernel/tools/update_all.py
13a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***
14a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   Any manual change here will be lost the next time this script will
15a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***   be run. You've been warned!
16a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ***
17a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ****************************************************************************
18a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng ****************************************************************************/
19a6b53f03c7c03c5bd28a1d582585b2b86fe70d59Ben Cheng#include <asm-generic/mman.h>
20d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
21