name.h,v
来自「TCP-IP红宝书源代码」· H,V 代码 · 共 64 行
H,V
64 行
head 1.2;
access;
symbols;
locks
dls:1.2; strict;
comment @ * @;
1.2
date 97.09.21.19.26.19; author dls; state Dist;
branches;
next 1.1;
1.1
date 94.05.10.20.48.46; author dls; state Old;
branches;
next ;
desc
@@
1.2
log
@pre-3e code
@
text
@/* name.h - fopen */
/* Constants that define the name mapping table sizes */
#define NAMPLEN 32 /* max size of a name prefix */
#define NAMRLEN 32 /* max size of a replacement */
#define NAMLEN 80 /* maximum size of a file name */
#define NNAMES 14 /* number of prefix definitions */
/* Definition of the name prefix table that defines all name mappings */
struct nament { /* definition of prefix mapping */
char npre[NAMPLEN]; /* prefix of a name */
char nrepl[NAMRLEN]; /* replacement for that prefix */
int ndev; /* device for this prefix */
};
struct nam { /* all name space variables */
int nnames; /* number of entries in nametab */
struct nament nametab[NNAMES];/* actual table of mappings */
} Nam;
#ifndef NAMESPACE
#define NAMESPACE SYSERR
#endif
#define fopen(n,m) open(NAMESPACE, n, m)
@
1.1
log
@Initial revision
@
text
@@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?