home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
file.lzh
/
readme
< prev
next >
Wrap
Text File
|
1995-04-27
|
4KB
|
73 lines
File - a file identification utility for OS-9
File is a utility designed to identify files by contents. It mainly relies
on identifying "magic coockies" (identifiying sequences at known locations)
in the file. If this method failes, it may still be able to identify the
file by name or extention. File knows about OS-9 and OS-9000 modules and
will identify such by examining the module header. It will therefore provide
additional info on these files.
This utility was designed to emulate the functionality of the unix utility
of the same name. I attempted to maintain command line functionality and
magic file usability with the OS-9 version. This program has additional
functionality that is found in some PD unix file utilities in that you can
specify the byte-ordering as well as the size of numeric values. Thus, in
addition to the standard short, you have beshort and leshort for big endian
short and little endian short. The same is true of long
About the included files:
Found in this archive are the following files:
file.c source for the basic utility
file.h header providing common definitions etc
help.c source for the help functions
istar.c source for recognizing tar files
magic the magic file for the utility - this should be put in /dd/sys
makefile a copy of makefile.cc
makefile.cc an OS-9 makefile for the 3.2 compiler
makefile.ucc an OS-9 makefile for Ultra C
makefile.unix a unix makefile
readmagic.c source for the magic file handling code
readme this file
strextra.c functions needed by the 3.2 compiler but not unix and Ultra C
strtoul.c source for strtoul.c function needed for unix
You will need to have some subdirectories to compile this code. For OS-9,
the directory IDIR/OS9 is needed. For OS-9000, IDIR/OS9K is needed. For
unix, you will need to define the environment variable MACHINE and then will
need the directory RELS/$MACHINE.
As is, the code should compile easily on OS-9/OSK machines and OS-9000
machines with either Ultra C or the 3.2 compiler. It should also compile
on most unix systems. Previous versions were known to compile on the Coco
running OS-9/6809 Level 2 and on the PC (compiler unknown). Some code changes
made since then may or may not prevent compilation of this release on these
machines. If it won't readily compile, modification to make it work should be
minor.
A Word About Magic Files:
The included magic file covers most OS-9 and many other file types. If you
find file types that it will not recognize, you may either create your own
entry in the magic file (run "file -help" for info on this) entry, or you
can send me a copy or two of this type and I will attempt it. Mostly, you
just have to indentify some value near the front of the file that is unique
to that file type, and present in all files of that type.
If you produce an entry for a usefull file type, please let me know so that
I may include it in the next release.
Suggestions, comments, buggs and magic file additions can be sent to me by
email at smcgee@microware.com.
The Final Word - Copyrights!
This program and all associated source code* is Copyright (c) 1995 by Scott
McGee. This archive may be freely distributed in its original, unaltered
form as long as no fee is charged for it beyond media costs. This Pogramis
provided AS IS with ABSOLUTLY NO WARANTY!
*strtoul.c and strextra.c were provided by Mike Haaland for this program.
Please contact him for the copyright status of these programs.