|
|
1.1 ! root 1: /* ! 2: * static char ID[] = "@(#) define3.h: 1.2 3/16/82"; ! 3: */ ! 4: /* mnemonic to indicate that a file is closed; cannot equal a file descriptor */ ! 5: #define CLOSED (-1) ! 6: ! 7: /* mnemonic to indicate a null manager link; cannot equal an index */ ! 8: #define END (-1) ! 9: ! 10: /* mnemonic to indicate an impossible hash value */ ! 11: #define HASHNULL 0 ! 12: ! 13: /* mnemonic to indicate a failed search for an id */ ! 14: #define IDNOTFOUND (-3l) ! 15: ! 16: /* mnemonic to indicate a failed search; distinct from ERROR or SUCCESS */ ! 17: #define NOTFOUND (-2) ! 18: ! 19: /* mnemonic to indicate a nonexistent file; distinct from CLOSED or descriptor */ ! 20: #define NOTMADE (-2) ! 21: ! 22: /* mnemonic to indicate a null ref/chng flag; distinct from RNLY or WRTN */ ! 23: #define RCNULL (-1) ! 24: ! 25: ! 26: /* macros to access library functions through the LIB structures */ ! 27: ! 28: #define MALLOC(size) (*Glib_mem->liballoc)(size) ! 29: #define MBUILDNAME(name,i) (*Glib_file->libbuildname)(name,i) ! 30: #define MCLOSE(designator) (*Glib_file->libclose)(designator) ! 31: #define MCREATE(name,mode) (*Glib_file->libcreate)(name,mode) ! 32: #define MFREE(ptr) (*Glib_mem->libfree)(ptr) ! 33: #define MOPEN(name,perms) (*Glib_file->libopen)(name,perms) ! 34: #define MREAD(designator,buffer,nbytes) (*Glib_file->libread)(designator,buffer,nbytes) ! 35: #define MSEEK(designator,position) (*Glib_file->libseek)(designator,position) ! 36: #define MUNLINK(name) (*Glib_file->libunlink)(name) ! 37: #define MWRITE(designator,buffer,nbytes) (*Glib_file->libwrite)(designator,buffer,nbytes) ! 38: ! 39: /* macro to check id for valid range */ ! 40: #define INVALID(sp,id) ( !( ((id)>=0) && ((id)<(sp)->maxpage) ) ) ! 41: ! 42: /* macro to check id for valid alignment */ ! 43: #define ALIGNID(id) ( ((id)+sizeof(BOUNDARY)-1)/sizeof(BOUNDARY)*sizeof(BOUNDARY) )
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.