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