[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/intern/guardedalloc/intern mallocn.c

Chris Want cwant at ualberta.ca
Mon Feb 27 18:39:12 CET 2006


Ton Roosendaal wrote:
> Hi,
> 
> SGI probably has MAP_ANONYMOUS... can you grep for it in  
> /usr/include/sys/mman.h?
> Might be same for Solaris.
> 
> -Ton-

Nope, here are the MAP_* defines:

#define MAP_SHARED      0x1     /* share changes */
#define MAP_PRIVATE     0x2     /* changes are private */
#define MAP_TYPE        0xf     /* mask for mapping type */
#define MAP_FIXED       0x010   /* interpret addr exactly */
#define MAP_RENAME      0x020   /* assign page to file */
#define MAP_AUTOGROW    0x040   /* file grows with store access */
#define MAP_LOCAL       0x080   /* separate copies made on fork/sproc */
#define MAP_AUTORESRV   0x100   /* logical swap reserved on demand */
#define MAP_TEXT        0x200   /* chg SHARED -> PRIVATE on write */
#define MAP_BRK         0x400   /* potentially make the area following this
#define MAP_PRIMARY     0x800   /* this mapping should be considered the
#define MAP_SGI_ANYADDR 0x1000  /* allow auto-placed mappings in the
#define MAP_FAILED      ((void *)-1L)

Chris


More information about the Bf-committers mailing list