-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfhdr.h
50 lines (43 loc) · 1.5 KB
/
fhdr.h
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
/* $Id: fhdr.h,v 1.5 2006/04/05 20:40:39 chris Exp $
*
* PCOS diskette file header structure
* Copyright (C) 2000,2006 by Christian Groessler
*
* 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; see the file COPYING. If not, write
* to the Free Software Foundation, 51 Franklin Street - Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __FHDR_H__
#define __FHDR_H__
/* all entries are big-endian! */
#include "packstrt.h"
WPACK struct ALIGN_ extent {
cpg_u32_t startsec;
cpg_u16_t numsecs;
} ALIGN_2;
#define MAX_FILE_EXTENTS 38
WPACK struct ALIGN_ file_header { /* sizeof: 256 bytes */
cpg_u32_t filelen;
cpg_u16_t extents;
cpg_u8_t unknown[16];
cpg_u16_t unknown2;
struct extent extentlist[MAX_FILE_EXTENTS];
cpg_u32_t link; /* 0xffffffff for last */
} ALIGN_2;
#include "packend.h"
#endif /* #ifndef __FHDR_H__ */
/* Local Variables: */
/* c-file-style: "cpg" */
/* c-basic-offset: 4 */
/* End: */