2
Copyright (c) 1990-2004 Info-ZIP. All rights reserved.
4
See the accompanying file LICENSE, version 2000-Apr-09 or later
5
(the contents of which are also included in unzip.h) for terms of use.
6
If, for some reason, all these files are missing, the Info-ZIP license
7
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
9
/* atheos.h -- A few handy things for the AtheOS port
11
* (c) 1997 Chris Herborth (chrish@qnx.com) - BeOS port
12
* (c) 2004 Ruslan Nickolaev (nruslan@hotbox.ru) - AtheOS port
14
* This is covered under the usual Info-ZIP copyright
20
#define EB_BE_FL_BADBITS 0xfe /* bits currently undefined */
23
AtheOS 'At' extra-field layout:
24
(same structure as the BeOS 'Be' e.f. layout, only signature and internal
25
conventions of the file attribute data are different...)
28
ef_size - size of data in this EF (little-endian unsigned short)
29
full_size - uncompressed data size (little-endian unsigned long)
31
flags & EB_BE_FL_UNCMPR = the data is not compressed
32
flags & EB_BE_FL_BADBITS = the data is corrupted or we
33
can't handle it properly
34
data - compressed or uncompressed file attribute data
36
If flag & EB_BE_FL_UNCMPR, the data is not compressed; this optimisation is
37
necessary to prevent wasted space for files with small attributes. In this
38
case, there should be (ef_size - EB_BEOS_HLEN) bytes of data, and full_size
39
should equal (ef_size - EB_BEOS_HLEN).
41
If the data is compressed, there will be (ef_size - EB_BEOS_HLEN) bytes of
42
compressed data, and full_size bytes of uncompressed data.
44
If a file has absolutely no attributes, there will not be a 'At' extra field.
46
The uncompressed data is arranged like this:
48
attr_name\0 - C string
49
struct attr_info (fields in little-endian format)
50
attr_data (length in attr_info.ai_size)
53
#endif /* _ATHEOS_H_ */