1 /*********************************************************************** 2 * * 3 * This software is part of the ast package * 4 * Copyright (c) 1985-2010 AT&T Intellectual Property * 5 * and is licensed under the * 6 * Common Public License, Version 1.0 * 7 * by AT&T Intellectual Property * 8 * * 9 * A copy of the License is available at * 10 * http://www.opensource.org/licenses/cpl1.0.txt * 11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 12 * * 13 * Information and Software Systems Research * 14 * AT&T Research * 15 * Florham Park NJ * 16 * * 17 * Glenn Fowler <gsf@research.att.com> * 18 * David Korn <dgk@research.att.com> * 19 * Phong Vo <kpv@research.att.com> * 20 * * 21 ***********************************************************************/ 22 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_64bit/src/lib/libast/features/mmap by iffe version 2009-12-04 : : */ 23 #ifndef _def_mmap_ast 24 #define _def_mmap_ast 1 25 #define _sys_types 1 /* #include <sys/types.h> ok */ 26 #define _sys_mman 1 /* #include <sys/mman.h> ok */ 27 #define _lib_mmap 1 /* standard mmap interface that works */ 28 #define _lib_mmap64 1 /* mmap64 interface and implementation work */ 29 #define _mmap_anon 1 /* use mmap MAP_ANON to get raw memory */ 30 #define _mmap_devzero 1 /* use mmap on /dev/zero to get raw memory */ 31 #define _mmap_worthy 2 /* mmap is good */ 32 33 /* some systems get it wrong but escape concise detection */ 34 #ifndef _NO_MMAP 35 #if __CYGWIN__ 36 #define _NO_MMAP 1 37 #endif 38 #endif 39 40 #if _NO_MMAP 41 #undef _lib_mmap 42 #undef _lib_mmap64 43 #undef _mmap_anon 44 #undef _mmap_devzero 45 #undef _mmap_worthy 46 #endif 47 48 #endif 49