ltfdefs.h

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C头文件 代码 · 共 541 行 · 第 1/2 页

H
541
字号
/*_O_*//*_P_*/#define PAD	'^'	/* Padding character *//*_Q_*//*_R_*/#define RECOFF	6	/* fuf record offset */#define REPORT_ERRORS 1	/* General purpose flag */#define RGRP	040#define ROTH	04#define ROWN	0400/*_S_*/#define SEGMENT 'S'	/* Segmented/spanned record file */#define SGID	02000#define SOCKET	0140000	/* File is a socket */#define STXT	01000#define SYMLNK	0120000	/* File is a symbolic link */#define SUCCEED 0	/* Exit with success status */#define SUID	04000/*_T_*/#define TABLE	4	/* Table of contents - function flag */#define TEXT	-10	/* File is some variant of ASCII data */#define TM 023		/* A tape mark */#define TRUE	1	/* BOOLEAN value for non-error indication */#define TRUNCATE 2	/* Truncate a string function *//*_U_*//*_V_*/#define VARIABLE 'D'	/* Variable length record file *//*_W_*/#define WGRP	020#define WOWN	0200#define WOTH	02#define WRITE	2/*_X_*/#define XGRP	010#define XOTH	01#define XOWN	0100struct XLINKBUF	{	/* Link table used when reading an input volume.	 * Contains information about all potential hard link files	 * that have been extracted.  The hard link file is determined 	 * by a match on the file sequence number that exists in HDR2	 * and the hlink field which is set when the volume is created 	 * indicating that a file has hard links.	 */	int	x_fseqno;	  /* File sequence number */	int	x_fsecno;	  /* File section number */	char	*x_pathname;	  /* Real file name */	struct	XLINKBUF *x_next; /* Point to next in chain */};/*E struct XLINKBUF *//*_Y_*/#define YES	1	/* BOOLEAN constant *//*_Z_*//**//*	---------------------------------------------------- * +-->  CONDITIONALIZED  GLOBAL DEFINITIONS / DECLARATIONS  <--+ *	---------------------------------------------------- * */#ifndef VARSC	/* If we are compiling any module other than		 * "ltfvars.c" (which allocates the actual		 * storage) - define as external data.		 *//*_A_c_*/extern	char	Ansiv;	/* ANSI Version Number of volume */extern	struct	ALINKBUF *A_head; /* Header for list of linked files */extern	char	A_specials[A_SPECIALS+1]; /* Array of special chctrs					     * allowed in an "a"-chctr					     * string. *//*_B_c_*/extern	char	*Bb;		/* FUF buffer (block) pointer */extern	long	Blocks;		/* Number of tape blocks read/written */extern	int	Blocksize;	/* Tape transfer block size *//*_C_c_*/extern	char	Carriage;	/* Carriage control attribute field				 * from/to HDR2 label.				 */extern	char	ch;		/* One character temporary variable */extern	char	*cp, *cp2;	/* Temporary character pointers *//*_D_c_*/extern	int	Days[2][13];	/* Days in the months table */extern	int	Dfiletype;	/* Current default/user designated				   file type for an output function */extern	struct	DIRE *Dhead;	/* Linked list of directorys on vol */extern	int	Dircre;		/* Flags wether a directory had to				 * be created on extract.				 */extern	char	Dummy[80];	/* Dummy area for string scans */extern	int	Dverbose;	/* True if user requested display of				 * volume directory information.				 *//*_E_c_*/extern	int	errno;		/* Error status for system routines */extern	int	error_status;	/* Error status for expnum *//*_F_c_*/extern	struct	FILESTAT *F_head;/* Link list pointer to filestats */extern	char	Format;		/* Record format, either F, D, or S */extern	int	Fsecno;		/* fsecno of next file to append */extern	int	Fseqno;		/* fseqno of next file to append */extern	int	Func;		/* The users' requested function *//*_G_c_*//*_H_c_*/extern	char	Hostname[21];	/* Host name from/to HDR3 *//*_I_c_*/extern	char	IMPID[14];	/* LTF Implementation ID - Used to				 * recognize whether or not a 				 * Volume was created by Ultrix */extern	struct	stat Inode;	/* Inode structure */extern	int	i;		/* Fast integer variable */extern	int	isdir;		/* Flag argument to scantape *//*_J_c_*/extern	int	j;		/* Fast integer variable *//*_K_c_*//*_L_c_*/extern	char	Labelbuf[BUFSIZE+1]; /* Work area for ANSI labels */extern	int	Leofl;		/* Number (0-9) identifying the				 * last eof label used to contain				 * an Ultrix path name component.				 */extern	int	Lhdrl;		/* Number (3-9) identifying the				 * last hdr label used to contain				 * an Ultrix path name component.				 */extern struct FILESTAT * Lookup(); /* Looks up a given ANSI volume				    * file name among user input				    * file arguments. */extern	int	L_blklen;	/*[05] block length -			 	 * number of chctrs per block */extern	char	L_crecent;	/*[01] creation date century */extern	char	L_credate[6];	/*[05] creation date */extern	char	L_expirdate[6];	/*[06] expiration date */extern	char	L_filename[18];	/*[17] file identifier */extern	int	L_fsecno;	/*[04] file section number */extern	int	L_fseqno;	/*[04] file sequence number */extern	int	L_gen;		/*[04] generation number */extern	int	L_genver;	/*[02] genration vrsn number */extern	char	L_labid[4];	/*[03] label identifier -				 *     "HDR" or "EOF" */extern	int	L_labno;	/*[01] label number */extern	long	L_nblocks;	/*[06] block count */extern	char	L_ownrid[15];	/*[14] owner id */extern	int	L_reclen;	/*[05] record length */extern	char	L_recformat;	/*[01] record format */extern	char	L_systemid[14];	/* System ID of ANSI volume creator */extern	char	L_volid[7];	/*[06] volume identifier			 	 * (tape label) 			 	 * (file set identifier) *//*_M_c_*/extern	char	Magtdev[MAXPATHLEN+1]; /* Output device name string */extern	FILE	*Magtfp;	/* File pointer to output device */extern	int	Maxrec;		/* Maximum record size */extern	char	*Months[];	/* Months in the year table */extern	int	M1[];extern	int	M2[];extern	int	M3[];extern	int	M4[];extern	int	M5[];extern	int	M6[];extern	int	M7[];extern	int	M8[];extern	int	M9[];extern	int	*M[];/*_N_c_*/extern	char	Name[MAXPATHLEN+1];   /* File name extracted from 				       * volume */extern	int	NMEM4D;		/* Flag set if no memory for directory				 * list */extern	int	Nodir;		/* Flags output of directory blocks */extern	int	Noheader3;	/* Flags whether user wants to use				 * ANSI HDR3, etc.. data. */extern	int	Nosym;		/* Flags output of symbolic link file */extern	int	Numrecs;	/* Number of files to manipulate */extern	int	numdir;		/* Number of directories in chdir *//*_O_c_*/extern	char	Outbuf[MAXBLKWRT+1];   /* Output buffer for writes */extern	char	Owner[15];	/* Owner of volume and file id string *//*_P_c_*/extern	int	permission;	/* permission flag used if super user on				 * extract for chown and chmod */extern	char	*Progname;	/* Global pointer to our invoked name *//*_Q_c_*//*_R_c_*/extern	char	*Rb;		/* FUF record pointer */#ifdef U11extern	int	Reclength;	/* Record length of tape file(s) */#endifextern	int	Rep_misslinks;	/* Report, not_report undumped links *//*_S_c_*/extern	int	Secno;		/* Position volume to this ANSI file				 * section number before beginning				 * requested operation(s).				 */extern	int	Seqno;		/* Position volume to this ANSI file				 * sequence number before beginning				 * requested operation(s).				 */extern	int	skip;		/* If TRUE, skip non-existent filenames				 * in inputfile */extern	char	Spaces[80];	/* A string of spaces for blank fills *//*_T_c_*/extern	int	Tape;		/* Tape flag - True or False depending 				 *  on the LTF i/o device being used */extern	char	Tape_Mark[10];	/* Dummy tape mark used for				 * non-tape devices */extern	char	Tftypes[4];	/* True Ultrix disk file type as an				 * ASCII string for HDR2 */extern	int	Type;		/* Unix disk file type *//*_U_c_*/extern	int	Ultrixvol;	/* Flags wether or not an input volume				 * was created by an Ultrix system.				 *//*_V_c_*/extern	int	Verbose;	/* Degree of desired verbosity */extern	char	Volid[7];	/* Volume ID (ANSI name of) */extern	int	Volmo;		/* Flags input volume announced and				 * init input volume logic done.				 *//*_W_c_*/extern	int	Warning;	/* Warnings (y/n) on file overwrites */extern	int	Wildc;		/* Used by mstrcmp() to indicate if a				 * wildcard was seen in a matched 				 * string.				 *//*_X_c_*/extern	long	xtractf();	/* Function returns a long value */extern	struct	XLINKBUF *X_head;/* Head pointer to linked file(s)				  * structures *//*_Y_c_*//*_Z_c_*/#endif VARSC/**\\**\\**\\**\\**\\**  EOM  ltfdefs.h  **\\**\\**\\**\\**\\*//**\\**\\**\\**\\**\\**  EOM  ltfdefs.h  **\\**\\**\\**\\**\\*/

⌨️ 快捷键说明

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