home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / mman < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.3 KB  |  41 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/mman.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/mman.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    mman.h,v $
  8.  * Revision 1.1  95/01/11  10:19:22  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:19:46  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)mman.h    1.2 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)mman.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /* protections are chosen from these bits, or-ed together */
  25. #define    PROT_READ    0x1        /* pages can be read */
  26. #define    PROT_WRITE    0x2        /* pages can be written */
  27. #define    PROT_EXEC    0x4        /* pages can be executed */
  28.  
  29. /* sharing types: choose either SHARED or PRIVATE */
  30. #define    MAP_SHARED    1        /* share changes */
  31. #define    MAP_PRIVATE    2        /* changes are private */
  32.  
  33. /* advice to madvise */
  34. #define    MADV_NORMAL    0        /* no further special treatment */
  35. #define    MADV_RANDOM    1        /* expect random page references */
  36. #define    MADV_SEQUENTIAL    2        /* expect sequential page references */
  37. #define    MADV_WILLNEED    3        /* will need these pages */
  38. #define    MADV_DONTNEED    4        /* dont need these pages */
  39.  
  40. /* EOF mman.h */
  41.