"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/os2" (17 Mar 2017, 1875 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "os2": 5.30_vs_5.31.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: os2,v 1.10 2017/03/17 21:35:28 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>
    9 1	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 #
   43 0   string  HSP\x01\x9b\x00 OS/2 INF
   44 >107 string >0                      (%s)
   45 0   string  HSP\x10\x9b\x00     OS/2 HLP
   46 >107 string >0                      (%s)
   47 
   48 # OS/2 INI (this is a guess)
   49 0  string   \xff\xff\xff\xff\x14\0\0\0  OS/2 INI