Print this page
6607 add default MAP_FILE symbol to sys/mman.h
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/mman.h
          +++ new/usr/src/uts/common/sys/mman.h
↓ open down ↓ 73 lines elided ↑ open up ↑
  74   74  #endif  /* _KERNEL */
  75   75  
  76   76  #define PROT_NONE       0x0             /* pages cannot be accessed */
  77   77  
  78   78  /* sharing types:  must choose either SHARED or PRIVATE */
  79   79  #define MAP_SHARED      1               /* share changes */
  80   80  #define MAP_PRIVATE     2               /* changes are private */
  81   81  #define MAP_TYPE        0xf             /* mask for share type */
  82   82  
  83   83  /* other flags to mmap (or-ed in to MAP_SHARED or MAP_PRIVATE) */
       84 +#define MAP_FILE        0               /* map from file (default) */
  84   85  #define MAP_FIXED       0x10            /* user assigns address */
  85   86  #define MAP_NORESERVE   0x40            /* don't reserve needed swap area */
  86   87  #define MAP_ANON        0x100           /* map anonymous pages directly */
  87   88  #define MAP_ANONYMOUS   MAP_ANON        /* (source compatibility) */
  88   89  #define MAP_ALIGN       0x200           /* addr specifies alignment */
  89   90  #define MAP_TEXT        0x400           /* map code segment */
  90   91  #define MAP_INITDATA    0x800           /* map data segment */
  91   92  
  92   93  #ifdef _KERNEL
  93   94  #define _MAP_TEXTREPL   0x1000
↓ open down ↓ 335 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX