xref: /dragonfly/contrib/file/magic/Magdir/os2 (revision 25a2db75)
1
2#------------------------------------------------------------------------------
3# $File: os2,v 1.7 2009/09/19 16:28:11 christos Exp $
4# os2:  file(1) magic for OS/2 files
5#
6
7# Provided 1998/08/22 by
8# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
91	search/1	InternetShortcut	MS Windows 95 Internet shortcut text
10>24	search/1	>\ 			(URL=<%s>)
11
12# OS/2 URL objects
13# Provided 1998/08/22 by
14# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
15#0	string	http:			OS/2 URL object text
16#>5	string	>\			(WWW) <http:%s>
17#0	string	mailto:			OS/2 URL object text
18#>7	string	>\			(email) <%s>
19#0	string	news:			OS/2 URL object text
20#>5	string	>\			(Usenet) <%s>
21#0	string	ftp:			OS/2 URL object text
22#>4	string	>\			(FTP) <ftp:%s>
23#0	string	file:			OS/2 URL object text
24#>5	string	>\			(Local file) <%s>
25
26# >>>>> OS/2 INF/HLP <<<<<  (source: Daniel Dissett ddissett@netcom.com)
27# Carl Hauser (chauser.parc@xerox.com) and
28# Marcus Groeber (marcusg@ph-cip.uni-koeln.de)
29# list the following header format in inf02a.doc:
30#
31#  int16 ID;           // ID magic word (5348h = "HS")
32#  int8  unknown1;     // unknown purpose, could be third letter of ID
33#  int8  flags;        // probably a flag word...
34#                      //  bit 0: set if INF style file
35#                      //  bit 4: set if HLP style file
36#                      // patching this byte allows reading HLP files
37#                      // using the VIEW command, while help files
38#                      // seem to work with INF settings here as well.
39#  int16 hdrsize;      // total size of header
40#  int16 unknown2;     // unknown purpose
41#
420   string  HSP\x01\x9b\x00 OS/2 INF
43>107 string >0                      (%s)
440   string  HSP\x10\x9b\x00     OS/2 HLP
45>107 string >0                      (%s)
46
47# OS/2 INI (this is a guess)
480  string   \xff\xff\xff\xff\x14\0\0\0  OS/2 INI
49