|
|
1.1 ! root 1: /*static char *SCCSID = "@(#)bsememf.h 1.5 90/05/09";*/ ! 2: /***************************************************************************\ ! 3: * ! 4: * Module Name: BSEMEMF.H ! 5: * ! 6: * OS/2 Base MEMory Flags include file ! 7: * ! 8: * Copyright (c) 1989 Microsoft Corporation ! 9: * Copyright (c) 1989 IBM Corporation ! 10: * ! 11: ************************************************************************/ ! 12: ! 13: /* Access protection */ ! 14: #define PAG_READ 0x00000001 /* read access */ ! 15: #define PAG_WRITE 0x00000002 /* write access */ ! 16: #define PAG_EXECUTE 0x00000004 /* execute access */ ! 17: #define PAG_GUARD 0x00000008 /* guard protection */ ! 18: #define PAG_DEFAULT 0x00000400 /* default (initial) access */ ! 19: ! 20: /* Commit */ ! 21: #define PAG_COMMIT 0x00000010 /* commit storage */ ! 22: #define PAG_DECOMMIT 0x00000020 /* decommit storage */ ! 23: ! 24: /* Allocation attributes */ ! 25: #define OBJ_TILE 0x00000040 /* tile object */ ! 26: #define OBJ_PROTECTED 0x00000080 /* protect object ! 27: NOTE: This flag is NOT available at ! 28: the api level */ ! 29: #define OBJ_GETTABLE 0x00000100 /* gettable by other processes */ ! 30: #define OBJ_GIVEABLE 0x00000200 /* giveable to other processes */ ! 31: ! 32: #define fPERM (PAG_EXECUTE + PAG_READ + PAG_WRITE) ! 33: #define fSHARE (OBJ_GETTABLE + OBJ_GIVEABLE) ! 34: ! 35: /* DosAllocMem flags */ ! 36: #define fALLOC (OBJ_TILE + PAG_COMMIT + fPERM) ! 37: ! 38: /* DosAllocSharedMem flags */ ! 39: #define fALLOCSHR (OBJ_TILE + PAG_COMMIT + fSHARE + fPERM) ! 40: ! 41: /* DosGetNamedSharedMem flags */ ! 42: #define fGETNMSHR (fPERM) ! 43: ! 44: /* DosGetSharedMem flags */ ! 45: #define fGETSHR (fPERM) ! 46: ! 47: /* DosGiveSharedMem flags */ ! 48: #define fGIVESHR (fPERM) ! 49: ! 50: /* DosSetMem flags */ ! 51: #define fSET (PAG_COMMIT + PAG_DECOMMIT + PAG_DEFAULT + fPERM) ! 52: ! 53: /* Dos32SubSet flags */ ! 54: #define DOSSUB_INIT 0x01 /* initialize memory object for */ ! 55: /* suballocation */ ! 56: #define DOSSUB_GROW 0x02 /* increase size of memory pool */ ! 57: /* for suballocation */ ! 58: #define DOSSUB_SPARSE_OBJ 0x04 /* indicator for DosSub to */ ! 59: /* manage the commitment of */ ! 60: /* pages spanned by the memory */ ! 61: /* pool */ ! 62: #define DOSSUB_SERIALIZE 0x08 /* indicates that access to the */ ! 63: /* memory pool is to be */ ! 64: /* serialized by DosSub */ ! 65: ! 66: /* Allocation type (returned from DosQueryMem) */ ! 67: #define PAG_SHARED 0x00002000 /* shared object */ ! 68: #define PAG_FREE 0x00004000 /* pages are free */ ! 69: #define PAG_BASE 0x00010000 /* first page in object */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.