dir.h,v

来自「TCP-IP红宝书源代码」· H,V 代码 · 共 61 行

H,V
61
字号
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
@/* dir.h */

#define	FDNLEN	10			/* length of file name + 1	*/
#define	NFDES	28			/* number of files per directory*/

struct	fdes	{			/* description of each file	*/
	long	fdlen;			/* length in bytes		*/
	IBADDR	fdiba;			/* first index block		*/
	char	fdname[FDNLEN];		/* zero-terminated file name	*/
};

struct	dir	{			/* directory layout		*/
	int	d_iblks;		/* i-blocks on this disk	*/
	DBADDR	d_fblst;		/* pointer to list of free blks	*/
	IBADDR	d_filst;		/* pointer to list of free iblks*/
	int	d_id;			/* disk identification integer	*/
	int	d_nfiles;		/* current number of files	*/
	struct	fdes	d_files[NFDES];	/* descriptions of the files	*/
};

struct	freeblk	{			/* shape of block on free list	*/
	DBADDR	fbnext;			/* address of next free block	*/
};
@


1.1
log
@Initial revision
@
text
@@

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?