Blender V2.61 - r43446

mmap_win.h

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