home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / sys / mman.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  1KB  |  45 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log:    mman.h,v $
  10.  * Revision 2.3  89/03/09  22:05:44  rpd
  11.  *     More cleanup.
  12.  * 
  13.  * Revision 2.2  89/02/25  17:54:47  gm0w
  14.  *     Changes for cleanup.
  15.  * 
  16.  */
  17. /*
  18.  * Copyright (c) 1982, 1986 Regents of the University of California.
  19.  * All rights reserved.  The Berkeley software License Agreement
  20.  * specifies the terms and conditions for redistribution.
  21.  *
  22.  *    @(#)mman.h    7.1 (Berkeley) 6/4/86
  23.  */
  24.  
  25. #ifndef    _SYS_MMAN_H_
  26. #define _SYS_MMAN_H_
  27.  
  28. /* protections are chosen from these bits, or-ed together */
  29. #define PROT_READ    0x1        /* pages can be read */
  30. #define PROT_WRITE    0x2        /* pages can be written */
  31. #define PROT_EXEC    0x4        /* pages can be executed */
  32.  
  33. /* sharing types: choose either SHARED or PRIVATE */
  34. #define MAP_SHARED    1        /* share changes */
  35. #define MAP_PRIVATE    2        /* changes are private */
  36.  
  37. /* advice to madvise */
  38. #define MADV_NORMAL    0        /* no further special treatment */
  39. #define MADV_RANDOM    1        /* expect random page references */
  40. #define MADV_SEQUENTIAL    2        /* expect sequential page references */
  41. #define MADV_WILLNEED    3        /* will need these pages */
  42. #define MADV_DONTNEED    4        /* dont need these pages */
  43.  
  44. #endif    _SYS_MMAN_H_
  45.