[Zlib-devel] OS_CODE

Mark Adler madler at alumni.caltech.edu
Tue Aug 22 12:17:09 EDT 2006


On Aug 21, 2006, at 11:16 PM, William A. Rowe, Jr. wrote:
> So a function returning 'this build's OS_CODE' could be  
> interesting, but
> most useful is the full table of #define's to grok the origin of an
> arbitrary gzip stream.

I see.  The list in zutil.h is not complete.  I could put in a table  
with all of them per the Info-ZIP appnote.  (Also now that I look at  
it, zutil.h could use some fixing with respect to these.)

mark



           0 - FAT file system (DOS, OS/2, NT)      + PKWARE 2.50+  
VFAT, NTFS
           1 - Amiga
           2 - OpenVMS
           3 - Unix
           4 - VM/CMS
           5 - Atari ST
           6 - HPFS file system (OS/2, NT 3.x)
           7 - Macintosh
           8 - Z-System
           9 - CP/M
            
---------------------------------------------------------------------
                PKWARE assignment             | Info-ZIP assignment
            
-----------------------------------|---------------------------------
           10 - Windows NTFS                  | TOPS-20
                (since PKZIPW 2.50, but       | (assigned Oct-1992,
                 not used by any PKWARE prog) |  no longer used)
           11 - MVS                           | NTFS file system (WinNT)
                                              | (actively used by  
Info-ZIP's
                                              |  Zip for NT since  
Sep-1993)
           12 - VSE                           | SMS/QDOS
            
---------------------------------------------------------------------
           13 - Acorn RISC OS
           14 - VFAT file system (Win95, NT)     [Info-ZIP  
reservation, unused]
           15 - MVS [PKWARE describes this assignment as "alternate  
MVS"]
           16 - BeOS (BeBox or PowerMac)
           17 - Tandem
           18 - OS/400 (IBM)                  | THEOS
           19 - OS/X (Darwin)
           20 thru 29 - unused
           30 - AtheOS/Syllable
           31 thru 255 - unused





More information about the Zlib-devel mailing list