1 /*********************************************************************\ 2 * Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu) * 3 * * 4 * You may copy or modify this file in any manner you wish, provided * 5 * that this notice is always included, and that you hold the author * 6 * harmless for any loss or damage resulting from the installation or * 7 * use of this software. * 8 \*********************************************************************/ 9 10 #ifndef _FSP_CLIENT_DEF_H_ 11 #define _FSP_CLIENT_DEF_H_ 1 12 13 #include "common_def.h" 14 #include "client_conf.h" 15 16 /************************************************************************* 17 * The following global variables are used to change the behavior when * 18 * fgrab encounters a file with the same name in the current directory * 19 * Added 11 Jan 93 by A.E.J.Fellows * 20 *************************************************************************/ 21 22 #define C_NOCLOBBER 1 /* Will not overwrite file of same name */ 23 #define C_CLOBBER 2 /* Will always overwrite file even if 24 remote file is not found */ 25 #define C_UNIQUE 3 /* Create unique name to avoid overwrite */ 26 #define C_TEMPNAME 4 /* Download to temp name */ 27 #define C_APPEND 5 /* Downloads will attempt to append to 28 end of file if it already exists */ 29 30 /**************************************************************************** 31 * These structures are used to implement a opendir/readdir mechanism similar 32 * to that of the normal opendir/reader mechanism in unix. 33 ****************************************************************************/ 34 35 typedef struct DDLIST { struct DDLIST *next; 36 char *path; 37 RDIRENT **dep_root; 38 int ref_cnt; } DDLIST; 39 40 typedef struct RDIR { DDLIST *ddp; 41 RDIRENT **dep; } RDIR; 42 43 typedef struct rdirent { unsigned long d_fileno; 44 unsigned short d_rcdlen; 45 unsigned short d_namlen; 46 char *d_name; } rdirent; 47 48 #endif /* _FSP_CLIENT_DEF_H_ */ 49