/*********************************************************************\ * Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu) * * * * You may copy or modify this file in any manner you wish, provided * * that this notice is always included, and that you hold the author * * harmless for any loss or damage resulting from the installation or * * use of this software. * \*********************************************************************/ #ifndef FSP_CLIENT_DEF_H_ #define FSP_CLIENT_DEF_H_ 1 #include "common_def.h" #include "client_conf.h" /************************************************************************* * The following global variables are used to change the behavior when * * fgrab encounters a file with the same name in the current directory * * Added 11 Jan 93 by A.E.J.Fellows * *************************************************************************/ #define C_NOCLOBBER 1 /* Will not overwrite file of same name */ #define C_CLOBBER 2 /* Will always overwrite file even if remote file is not found */ #define C_UNIQUE 3 /* Create unique name to avoid overwrite */ #define C_TEMPNAME 4 /* Download to temp name */ #define C_APPEND 5 /* Downloads will attempt to append to end of file if it already exists */ /**************************************************************************** * These structures are used to implement a opendir/readdir mechanism similar * to that of the normal opendir/reader mechanism in unix. ****************************************************************************/ typedef struct DDLIST { struct DDLIST *next; char *path; RDIRENT **dep_root; int ref_cnt; } DDLIST; typedef struct RDIR { DDLIST *ddp; RDIRENT **dep; } RDIR; typedef struct rdirent { unsigned long d_fileno; unsigned short d_rcdlen; unsigned short d_namlen; char *d_name; } rdirent; #endif /* FSP_CLIENT_DEF_H_ */