/*-1* Copyright (c) 2004 Tim J. Robbins2* Copyright (c) 2002 Doug Rabson3* Copyright (c) 2000 Marcel Moolenaar4* Copyright (c) 1994-1995 Søren Schmidt5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions and the following disclaimer12* in this position and unchanged.13* 2. Redistributions in binary form must reproduce the above copyright14* notice, this list of conditions and the following disclaimer in the15* documentation and/or other materials provided with the distribution.16* 3. The name of the author may not be used to endorse or promote products17* derived from this software without specific prior written permission.18*19* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR20* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES21* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.22* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,23* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT24* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,25* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY26* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT27* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF28* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.29*/3031#ifndef _LINUX_MMAP_H_32#define _LINUX_MMAP_H_3334/* mmap options */35#define LINUX_MAP_SHARED 0x000136#define LINUX_MAP_PRIVATE 0x000237#define LINUX_MAP_FIXED 0x001038#define LINUX_MAP_ANON 0x002039#define LINUX_MAP_32BIT 0x004040#define LINUX_MAP_GROWSDOWN 0x01004142#define LINUX_PROT_GROWSDOWN 0x0100000043#define LINUX_PROT_GROWSUP 0x020000004445#define LINUX_MADV_NORMAL 046#define LINUX_MADV_RANDOM 147#define LINUX_MADV_SEQUENTIAL 248#define LINUX_MADV_WILLNEED 349#define LINUX_MADV_DONTNEED 450#define LINUX_MADV_FREE 851#define LINUX_MADV_REMOVE 952#define LINUX_MADV_DONTFORK 1053#define LINUX_MADV_DOFORK 1154#define LINUX_MADV_MERGEABLE 1255#define LINUX_MADV_UNMERGEABLE 1356#define LINUX_MADV_HUGEPAGE 1457#define LINUX_MADV_NOHUGEPAGE 1558#define LINUX_MADV_DONTDUMP 1659#define LINUX_MADV_DODUMP 1760#define LINUX_MADV_WIPEONFORK 1861#define LINUX_MADV_KEEPONFORK 1962#define LINUX_MADV_HWPOISON 10063#define LINUX_MADV_SOFT_OFFLINE 1016465int linux_mmap_common(struct thread *, uintptr_t, size_t, int, int,66int, off_t);67int linux_mprotect_common(struct thread *, uintptr_t, size_t, int);68int linux_madvise_common(struct thread *, uintptr_t, size_t, int);6970#endif /* _LINUX_MMAP_H_ */717273