1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
/****************************************************************
Copyright (C) 1986-2000 by
F6FBB - Jean-Paul ROUBELAT
6, rue George Sand
31120 - Roquettes - France
jpr@f6fbb.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Parts of code have been taken from many other softwares.
Thanks for the help.
****************************************************************/
/* pbsv.h 1993.8.6 */
#define DEBUG 1
#define PBSV_VER "0.04"
#define PBSV_ID "[930806]"
typedef int VOID;
typedef int BOOL;
typedef int TINY;
#define OK 1
#define NG 0
#define ON 1
#define OFF 0
#define NOT_DEFINE (-1)
#define MAXUSER 20
#define MAXHOLE 100
#define MAXPFHDIR 16384
#define MAXBLKSIZE 244
#define ADRSIZE 7 /* adrs length */
#define CALLSIZE 10
#define HDRSIZE (1+7+7+1+1)
#define FRMSIZE 2048
#define F_DIR 0x0001
extern unsigned short calc_crc(unsigned char c, unsigned short crc);
struct stqcell {
struct stqcell *next;
};
struct stqueue {
struct stqcell *head;
struct stqcell *tail;
};
struct sthole {
struct sthole *next;
long offset;
ushort length;
time_t start;
time_t end;
};
struct stuser {
struct stuser *next;
time_t entry_t;
ushort flags;
char call[CALLSIZE];
int file_type;
long file_id;
ushort block_size;
long file_size;
struct stqueue hole;
};
struct stpfhdir {
time_t t_old;
time_t t_new;
long file_id;
int pfh_type;
/* int pfh_size; */
};
struct stpfh {
u_long file_number;
char file_name[8];
char file_ext[3];
u_long file_size;
u_long create_time;
u_long last_modied_time;
u_char seu_flag;
u_char file_type;
ushort body_checksum;
ushort header_cecksum;
ushort body_offset;
ushort pfh_size;
};
/* pbsv.h */
|