xref: /openbsd-src/usr.bin/file/magdir/os2 (revision 0ee74395949c27152548431c5cb896cb486a0866)
1*0ee74395Schl#	$OpenBSD: os2,v 1.3 2009/04/24 18:54:34 chl Exp $
236c0c0feStedu
336c0c0feStedu#------------------------------------------------------------------------------
436c0c0feStedu# os2:  file(1) magic for OS/2 files
536c0c0feStedu#
636c0c0feStedu
736c0c0feStedu# Provided 1998/08/22 by
836c0c0feStedu# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
9*0ee74395Schl1	search/1	InternetShortcut	MS Windows 95 Internet shortcut text
10*0ee74395Schl>24	search/1	>\ 			(URL=<%s>)
1136c0c0feStedu
1236c0c0feStedu# OS/2 URL objects
1336c0c0feStedu# Provided 1998/08/22 by
1436c0c0feStedu# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
1536c0c0feStedu#0	string	http:			OS/2 URL object text
1636c0c0feStedu#>5	string	>\			(WWW) <http:%s>
1736c0c0feStedu#0	string	mailto:			OS/2 URL object text
1836c0c0feStedu#>7	string	>\			(email) <%s>
1936c0c0feStedu#0	string	news:			OS/2 URL object text
2036c0c0feStedu#>5	string	>\			(Usenet) <%s>
2136c0c0feStedu#0	string	ftp:			OS/2 URL object text
2236c0c0feStedu#>4	string	>\			(FTP) <ftp:%s>
2336c0c0feStedu#0	string	file:			OS/2 URL object text
2436c0c0feStedu#>5	string	>\			(Local file) <%s>
2536c0c0feStedu
2636c0c0feStedu# >>>>> OS/2 INF/HLP <<<<<  (source: Daniel Dissett ddissett@netcom.com)
2736c0c0feStedu# Carl Hauser (chauser.parc@xerox.com) and
2836c0c0feStedu# Marcus Groeber (marcusg@ph-cip.uni-koeln.de)
2936c0c0feStedu# list the following header format in inf02a.doc:
3036c0c0feStedu#
3136c0c0feStedu#  int16 ID;           // ID magic word (5348h = "HS")
3236c0c0feStedu#  int8  unknown1;     // unknown purpose, could be third letter of ID
3336c0c0feStedu#  int8  flags;        // probably a flag word...
3436c0c0feStedu#                      //  bit 0: set if INF style file
3536c0c0feStedu#                      //  bit 4: set if HLP style file
3636c0c0feStedu#                      // patching this byte allows reading HLP files
3736c0c0feStedu#                      // using the VIEW command, while help files
3836c0c0feStedu#                      // seem to work with INF settings here as well.
3936c0c0feStedu#  int16 hdrsize;      // total size of header
4036c0c0feStedu#  int16 unknown2;     // unknown purpose
4136c0c0feStedu#
4236c0c0feStedu0   string  HSP\x01\x9b\x00 OS/2 INF
4336c0c0feStedu>107 string >0                      (%s)
4436c0c0feStedu0   string  HSP\x10\x9b\x00     OS/2 HLP
4536c0c0feStedu>107 string >0                      (%s)
4636c0c0feStedu
4736c0c0feStedu# OS/2 INI (this is a guess)
4836c0c0feStedu0  string   \xff\xff\xff\xff\x14\0\0\0  OS/2 INI
49