home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / vm_prot.h < prev    next >
C/C++ Source or Header  |  1992-07-29  |  1KB  |  54 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 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.  *    File:    mach/vm_prot.h
  9.  *    Author:    Avadis Tevanian, Jr., Michael Wayne Young
  10.  *
  11.  *    Copyright (C) 1985, Avadis Tevanian, Jr., Michael Wayne Young
  12.  *
  13.  *    Virtual memory protection definitions.
  14.  *
  15.  * HISTORY
  16.  *  6-Jun-85  Avadis Tevanian (avie) at Carnegie-Mellon University
  17.  *    Created.
  18.  */
  19.  
  20. #ifndef    _MACH_VM_PROT_H_
  21. #define    _MACH_VM_PROT_H_
  22.  
  23. /*
  24.  *    Types defined:
  25.  *
  26.  *    vm_prot_t        VM protection values.
  27.  */
  28.  
  29. typedef int        vm_prot_t;
  30.  
  31. /*
  32.  *    Protection values, defined as bits within the vm_prot_t type
  33.  */
  34.  
  35. #define    VM_PROT_NONE    ((vm_prot_t) 0x00)
  36.  
  37. #define VM_PROT_READ    ((vm_prot_t) 0x01)    /* read permission */
  38. #define VM_PROT_WRITE    ((vm_prot_t) 0x02)    /* write permission */
  39. #define VM_PROT_EXECUTE    ((vm_prot_t) 0x04)    /* execute permission */
  40.  
  41. /*
  42.  *    The default protection for newly-created virtual memory
  43.  */
  44.  
  45. #define VM_PROT_DEFAULT    (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
  46.  
  47. /*
  48.  *    The maximum privileges possible, for parameter checking.
  49.  */
  50.  
  51. #define VM_PROT_ALL    (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
  52.  
  53. #endif    _MACH_VM_PROT_H_
  54.