Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
beos.h
Package: unzip540.zip [view]
Upload User: andy_li
Upload Date: 2007-01-06
Package Size: 1019k
Code Size: 2k
Category:
Compress-Decompress algrithms
Development Platform:
MultiPlatform
- /* beos.h -- A few handy things for the BeOS port. */
- /* (c) 1997 Chris Herborth (chrish@qnx.com) */
- /* This is covered under the usual Info-ZIP copyright. */
- /* "#define EF_BE_FL_UNCMPR 0x01" has been moved into unzpriv.h */
- #define EB_BE_FL_BADBITS 0xfe /* bits currently undefined */
- #define BEOS_ASSIGN_FILETYPE 1 /* call update_mime_info() */
- /*
- DR9 'Be' extra-field layout:
- 'Be' - signature
- ef_size - size of data in this EF (little-endian unsigned short)
- full_size - uncompressed data size (little-endian unsigned long)
- flag - flags (byte)
- flags & EB_BE_FL_UNCMPR = the data is not compressed
- flags & EB_BE_FL_BADBITS = the data is corrupted or we
- can't handle it properly
- data - compressed or uncompressed file attribute data
- If flag & EB_BE_FL_UNCMPR, the data is not compressed; this optimisation is
- necessary to prevent wasted space for files with small attributes (which
- appears to be quite common on the Advanced Access DR9 release). In this
- case, there should be ( ef_size - EB_L_BE_LEN ) bytes of data, and full_size
- should equal ( ef_size - EB_L_BE_LEN ).
- If the data is compressed, there will be ( ef_size - EB_L_BE_LEN ) bytes of
- compressed data, and full_size bytes of uncompressed data.
- If a file has absolutely no attributes, there will not be a 'Be' extra field.
- The uncompressed data is arranged like this:
- attr_name - C string
- struct attr_info (fields in big-endian format)
- attr_data (length in attr_info.size)
- */