# ------------------------------ IIgs start ----------------------------------- # Many (most?) UNIX systems use the /etc/magic file as a database in order # to determine the "type" of a file. (Files don't have types in the ProDOS # sense; the "type" is determined by looking for key information in the file.) # # This is a set of entries for common Apple II file formats. (Because of # the nature of many formats, not all can be determined and are therefore # not listed.) This listing should be added your current /etc/magic file. # # This set of entries has been successfully used on a Linux (Slackware x86) # system. If you have modifications or additions to this file, please # email them to Devin Reade . 0 string FiLeStArTfIlEsTaRt Apple II binscii text 0 string \166\377 Apple II Squeezed data 0 string NuFile Apple II NuFile archive 0 string N\365F\351l\345 Apple II NuFile archive 0 string SIT! Macintosh StuffIt text # The magic string for a Binary II file is actually "\nGL", but for some # reason, testing for the newline (offset zero) doesn't work. 1 string GL Apple II Binary-II archive # It is recommended that gsh(1) scripts use "#! /bin/gsh" as the first # line of the file. While the current version (as of this writing) does # not require it, it will uniquely identify a gsh script _and_ it will # simplify things when the Bourne shell for GNO is released. 0 string #!/bin/gsh GNO Shell commands text 0 string #!\ /bin/gsh GNO Shell commands text # A similar argument holds here: Please use "* orca" as the first line # of an ORCA/Shell script. Case counts. 0 string *orca ORCA/Shell commands text 0 string *\ orca ORCA/Shell commands text # IIgs OMF files. Unfortunately, there doesn't seem to be a wildcard # mechanism for the non-OMF values (those listed as "data"). 15 byte 2 >20 leshort&31 0 Apple II OMF code >20 leshort&31 1 Apple II OMF data or program >20 leshort&31 2 Apple II OMF jump table segment >20 leshort&31 3 data >20 leshort&31 4 Apple II OMF pathname segment >20 leshort&31 5 data >20 leshort&31 6 data >20 leshort&31 7 data >20 leshort&31 8 Apple II OMF library >20 leshort&31 9 data >20 leshort&31 10 data >20 leshort&31 11 data >20 leshort&31 12 data >20 leshort&31 13 data >20 leshort&31 14 data >20 leshort&31 15 data >20 leshort&31 16 Apple II OMF initialization segment >20 leshort&31 17 data >20 leshort&31 18 Apple II OMF direct page / stack >20 leshort&31 >18 data # # ------------------------------ IIgs end -------------------------------------