|
Blender
V2.59
|
00001 /* 00002 * $Id: mmap_win.h 35025 2011-02-21 11:38:55Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2008 Blender Foundation. 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): Andrea Weikert. 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 */ 00029 00035 #ifndef MMAP_WIN_H 00036 #define MMAP_WIN_H 00037 00038 #define PROT_NONE 0 00039 #define PROT_READ 1 00040 #define PROT_WRITE 2 00041 #define PROT_EXEC 4 00042 00043 #define MAP_FILE 0 00044 #define MAP_SHARED 1 00045 #define MAP_PRIVATE 2 00046 #define MAP_TYPE 0xF 00047 #define MAP_FIXED 0x10 00048 #define MAP_ANONYMOUS 0x20 00049 #define MAP_ANON MAP_ANONYMOUS 00050 00051 #define MAP_FAILED ((void *)-1) 00052 00053 #include "MEM_sys_types.h" // needed for intptr_t 00054 00055 void *mmap(void *start, size_t len, int prot, int flags, int fd, off_t offset); 00056 intptr_t munmap(void *ptr, intptr_t size); 00057 00058 #endif 00059