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