|
|
1.1 ! root 1: /* name.h - fopen */ ! 2: ! 3: /* Constants that define the name mapping table sizes */ ! 4: ! 5: #define NAMPLEN 32 /* max size of a name prefix */ ! 6: #define NAMRLEN 32 /* max size of a replacement */ ! 7: #define NAMLEN 80 /* maximum size of a file name */ ! 8: #define NNAMES 16 /* number of prefix definitions */ ! 9: ! 10: /* Definition of the name prefix table that defines all name mappings */ ! 11: ! 12: struct nament { /* definition of prefix mapping */ ! 13: char npre[NAMPLEN]; /* prefix of a name */ ! 14: char nrepl[NAMRLEN]; /* replacement for that prefix */ ! 15: int ndev; /* device for this prefix */ ! 16: }; ! 17: ! 18: struct nam { /* all name space variables */ ! 19: int nnames; /* number of entries in nametab */ ! 20: struct nament nametab[NNAMES];/* actual table of mappings */ ! 21: }; ! 22: ! 23: extern struct nam Nam; ! 24: ! 25: #ifndef NAMESPACE ! 26: #define NAMESPACE SYSERR ! 27: #endif ! 28: ! 29: #define fopen(n,m) open(NAMESPACE, n, m)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.