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