]> granicus.if.org Git - file/log
file
31 years agoInitial revision
Ian Darwin [Fri, 19 Feb 1993 14:52:05 +0000 (14:52 +0000)]
Initial revision

31 years agoRemoved this file as part of Guy Harris's megachanges, Jan '93.
Ian Darwin [Fri, 19 Feb 1993 14:52:03 +0000 (14:52 +0000)]
Removed this file as part of Guy Harris's megachanges, Jan '93.

31 years agoInitial revision
Ian Darwin [Fri, 19 Feb 1993 14:38:59 +0000 (14:38 +0000)]
Initial revision

31 years agoNewly revised by Guy Harris.
Ian Darwin [Fri, 19 Feb 1993 14:37:45 +0000 (14:37 +0000)]
Newly revised by Guy Harris.

31 years agoGuy Harris's Jan '93 megadeltas.
Ian Darwin [Fri, 19 Feb 1993 14:36:15 +0000 (14:36 +0000)]
Guy Harris's Jan '93 megadeltas.

31 years agoEvolution in action.
Ian Darwin [Fri, 19 Feb 1993 14:33:11 +0000 (14:33 +0000)]
Evolution in action.

31 years ago(no commit message)
Ian Darwin [Fri, 19 Feb 1993 14:32:13 +0000 (14:32 +0000)]

31 years agoChanges.
Ian Darwin [Fri, 19 Feb 1993 14:31:59 +0000 (14:31 +0000)]
Changes.

31 years agoNew improved.
Ian Darwin [Fri, 19 Feb 1993 14:31:05 +0000 (14:31 +0000)]
New improved.

31 years agoCommand text files.
Ian Darwin [Fri, 19 Feb 1993 14:30:03 +0000 (14:30 +0000)]
Command text files.

31 years agoSilly one-liner, for magic file itself, from Guy Harris.
Ian Darwin [Fri, 19 Feb 1993 14:27:49 +0000 (14:27 +0000)]
Silly one-liner, for magic file itself, from Guy Harris.

31 years agoInitial revision
Ian Darwin [Fri, 19 Feb 1993 14:26:29 +0000 (14:26 +0000)]
Initial revision

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:48 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.

Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.

Also, make old-style "not set"ting - "0 byte ^0x80 statically
linked", meaning "this line matches if any of the bits in the
value *aren't* set in the number from the file" - work.

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:47 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.

NOTE: it doesn't support multi-level ">"; it wasn't clear to me
why it printed things such as "offset" and "indirect-offset" for
old-style continuations, as the offset into the file is an
absolute number *even for continuation lines*.

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:46 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Note that "short", "long", and "date" work in the native byte
order of the process running "file" (actually, I say "this
machine", but I could imagine UNIX on MIPS chips supporting both
big-endian and little-endian processes), and document "beshort",
"belong", "bedate", "leshort", "lelong", and "ledate".

Document old-style ANDing, now that it works.

Formatting nits.

Mention that ">\0" can be used to match any string, and thus to
print strings extracted from the file.

Document multi-level ">".

Document that I haven't yet implemented ways of specifying the
endianness of data to be used in indirect offsets.

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:45 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Put an extra '\0' at the end of the buffer before handing it to
"tryit()"; "ascmagic()" assumes the buffer is a '\0'-terminated
string, as it runs a copy of it through "strtok()".

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:44 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.

Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:43 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Leave room for the extra '\0' that "process()" puts at the end
of the buffer.

31 years agoPart of Guy Harris' Jan-93 rewrite, including:
Ian Darwin [Fri, 19 Feb 1993 14:22:42 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.

Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.

Fix the old-style ANDing - don't change it to a MASK op
relation, because:

there's already code to handle old-style ANDing and there's no
need to use the MASK op code to implement this;

the parser that used to be there assumed that there was a
*second* number that represented a value against which
to compare the ANDed value, and the old-style ANDing
*didn't* have that so lines containing the old-style
syntax "0 byte &0x80 dynamically linked" turned into
lines containing the new-style syntax "0 byte&0x80 0
dynamically linked", as the missing second value
defaulted to 0.

That may be where that bizarro "!074000,000000" stuff from the
Clipper magic number stuff came, but since you can just
*explicitly* implement that with new-style ANDing, one might as
well just do that....

Also, make old-style "not set"ting - "0 byte ^0x80 statically
linked", meaning "this line matches if any of the bits in the
value *aren't* set in the number from the file" - work.

31 years agoUpdate commentary on "-g"; change MANDIR to default to MAN5.
Ian Darwin [Fri, 19 Feb 1993 14:11:26 +0000 (14:11 +0000)]
Update commentary on "-g"; change MANDIR to default to MAN5.
Add Localstuff and Header to dist list for Magdir. Add ftp, patchlevel,
and new rules.

31 years agoAdd commentary about anding; add one cast to suppress lint.
Ian Darwin [Fri, 19 Feb 1993 14:10:50 +0000 (14:10 +0000)]
Add commentary about anding; add one cast to suppress lint.

31 years agoInitial revision
Ian Darwin [Fri, 19 Feb 1993 12:19:40 +0000 (12:19 +0000)]
Initial revision

31 years agoFix for broken symlink bug, from martin@d255s004.zfe.siemens.de.
Ian Darwin [Fri, 19 Feb 1993 12:09:04 +0000 (12:09 +0000)]
Fix for broken symlink bug, from martin@d255s004.zfe.siemens.de.

31 years agoInitial revision
Ian Darwin [Fri, 19 Feb 1993 12:08:27 +0000 (12:08 +0000)]
Initial revision

31 years agoAdd gnu zip (gzip), from martin@d255s004.zfe.siemens.de.
Ian Darwin [Fri, 19 Feb 1993 12:08:18 +0000 (12:08 +0000)]
Add gnu zip (gzip), from martin@d255s004.zfe.siemens.de.

32 years agoCouple of nits picked by Christos (again, thanks).
Ian Darwin [Tue, 5 Jan 1993 14:57:27 +0000 (14:57 +0000)]
Couple of nits picked by Christos (again, thanks).

32 years agoMissing doc of "date".
Ian Darwin [Tue, 5 Jan 1993 14:55:30 +0000 (14:55 +0000)]
Missing doc of "date".

32 years agoChristos: spelled his name wrong (old typo, sorry).
Ian Darwin [Tue, 5 Jan 1993 14:55:13 +0000 (14:55 +0000)]
Christos: spelled his name wrong (old typo, sorry).

32 years agoShorten USL propaganda; it's now in LEGAL.NOTICE.
Ian Darwin [Tue, 5 Jan 1993 13:57:48 +0000 (13:57 +0000)]
Shorten USL propaganda; it's now in LEGAL.NOTICE.

32 years agoAdd note about UNIX trademark.
Ian Darwin [Tue, 5 Jan 1993 13:57:39 +0000 (13:57 +0000)]
Add note about UNIX trademark.

32 years agoLotsa work on the Magic directory.
Ian Darwin [Tue, 5 Jan 1993 13:51:09 +0000 (13:51 +0000)]
Lotsa work on the Magic directory.

32 years agoBlit terminal stuff
Ian Darwin [Tue, 5 Jan 1993 13:25:16 +0000 (13:25 +0000)]
Blit terminal stuff

32 years agoInitial revision
Ian Darwin [Tue, 5 Jan 1993 13:22:34 +0000 (13:22 +0000)]
Initial revision

32 years ago*** empty log message ***
Ian Darwin [Tue, 5 Jan 1993 13:22:25 +0000 (13:22 +0000)]
*** empty log message ***

32 years agoMinor cleanups.
Ian Darwin [Tue, 5 Jan 1993 12:52:44 +0000 (12:52 +0000)]
Minor cleanups.

32 years agoAdd A/E SGML; comment out SQ BITMAP2 as it doesn't exist.
Ian Darwin [Tue, 5 Jan 1993 12:51:54 +0000 (12:51 +0000)]
Add A/E SGML; comment out SQ BITMAP2 as it doesn't exist.

32 years agoAdd fig.
Ian Darwin [Tue, 5 Jan 1993 12:49:24 +0000 (12:49 +0000)]
Add fig.

32 years agoAdd comentary.
Ian Darwin [Tue, 5 Jan 1993 12:47:35 +0000 (12:47 +0000)]
Add comentary.

32 years agoAdd phigs.
Ian Darwin [Tue, 5 Jan 1993 12:45:03 +0000 (12:45 +0000)]
Add phigs.

32 years agoAlpha sort on "misc" section. Add gks.
Ian Darwin [Tue, 5 Jan 1993 12:44:09 +0000 (12:44 +0000)]
Alpha sort on "misc" section. Add gks.

32 years agoSuggested by janl@ifi.uio.no: merge in GIF, TIFF, etc., and rename
Ian Darwin [Tue, 5 Jan 1993 12:42:33 +0000 (12:42 +0000)]
Suggested by janl@ifi.uio.no: merge in GIF, TIFF, etc., and rename
to "images". Shorten comments. Add JPEG and Artisan, also from Jan.

32 years agoUpdate legal notice; add AVAILABILITY ref to pub.cs.toronto.edu
Ian Darwin [Tue, 5 Jan 1993 12:20:09 +0000 (12:20 +0000)]
Update legal notice; add AVAILABILITY ref to pub.cs.toronto.edu

32 years agoFailure to read a symlink is no longer fatal; just report as unreadable.
Ian Darwin [Mon, 9 Nov 1992 11:53:31 +0000 (11:53 +0000)]
Failure to read a symlink is no longer fatal; just report as unreadable.

32 years agoFix a tiny null-pointer bug in previous fix for tar archive + uncompress.
Ian Darwin [Mon, 14 Sep 1992 14:54:51 +0000 (14:54 +0000)]
Fix a tiny null-pointer bug in previous fix for tar archive + uncompress.

32 years agoFix a null-pointer bug in Zoulas' previous bug fix.
Ian Darwin [Mon, 14 Sep 1992 14:17:02 +0000 (14:17 +0000)]
Fix a null-pointer bug in Zoulas' previous bug fix.

32 years agoZoulas' nitpicking.
Ian Darwin [Fri, 11 Sep 1992 17:47:06 +0000 (17:47 +0000)]
Zoulas' nitpicking.

32 years agoZoulas: arg to isXXX in ctype must now be unsigned, to prevent
Ian Darwin [Fri, 11 Sep 1992 17:43:08 +0000 (17:43 +0000)]
Zoulas: arg to isXXX in ctype must now be unsigned, to prevent
indexing before beginning of _ctype array.

32 years agoOops, FILE* is not const, it gets modified by stdio...
Ian Darwin [Fri, 11 Sep 1992 17:42:09 +0000 (17:42 +0000)]
Oops, FILE* is not const, it gets modified by stdio...
Zoulas' compiler found this one, btw.

32 years agoAdd header for new ckfprintf().
Ian Darwin [Fri, 11 Sep 1992 17:41:54 +0000 (17:41 +0000)]
Add header for new ckfprintf().

32 years agonew revision.
Ian Darwin [Fri, 11 Sep 1992 13:21:38 +0000 (13:21 +0000)]
new revision.

32 years agoAdd note that it's slower than some vendors' file commands.
Ian Darwin [Fri, 11 Sep 1992 13:16:52 +0000 (13:16 +0000)]
Add note that it's slower than some vendors' file commands.

32 years agoPermission denied type messages are no longer fatal.
Ian Darwin [Fri, 11 Sep 1992 13:15:16 +0000 (13:15 +0000)]
Permission denied type messages are no longer fatal.

32 years agoEliminate extraneous \n in "broken symlink" message.
Ian Darwin [Fri, 11 Sep 1992 12:52:46 +0000 (12:52 +0000)]
Eliminate extraneous \n in "broken symlink" message.

32 years agoFix long-standing bug that fn and "no such file or directory" came out
Ian Darwin [Fri, 11 Sep 1992 12:37:43 +0000 (12:37 +0000)]
Fix long-standing bug that fn and "no such file or directory" came out
on seperate lines, by using new ckfprintf. This msg is no longer fatal, too.

32 years agoDuh, don't exit() at end of ckfprintf()!
Ian Darwin [Fri, 11 Sep 1992 12:37:28 +0000 (12:37 +0000)]
Duh, don't exit() at end of ckfprintf()!

32 years agoUse ckfprintf to say "broken symlink...".
Ian Darwin [Fri, 11 Sep 1992 12:07:27 +0000 (12:07 +0000)]
Use ckfprintf to say "broken symlink...".

32 years agoDist rule mkdirs local*{,/*}; add comments and LOCALINC define.
Ian Darwin [Fri, 11 Sep 1992 11:55:35 +0000 (11:55 +0000)]
Dist rule mkdirs local*{,/*}; add comments and LOCALINC define.

32 years agoMove list of systems ported to out into PORTING.
Ian Darwin [Fri, 11 Sep 1992 11:54:15 +0000 (11:54 +0000)]
Move list of systems ported to out into PORTING.

32 years agoMove list of compiled-on's here; add note that you need <stdarg.h> or
Ian Darwin [Fri, 11 Sep 1992 11:53:39 +0000 (11:53 +0000)]
Move list of compiled-on's here; add note that you need <stdarg.h> or
<varargs.h> for print.c.

32 years agoConsolidate the TODO list in the BUGS section.
Ian Darwin [Fri, 11 Sep 1992 11:50:17 +0000 (11:50 +0000)]
Consolidate the TODO list in the BUGS section.

32 years agoAdd ckfputs() [moved here from file.c] and new ckfprintf().
Ian Darwin [Fri, 11 Sep 1992 11:44:51 +0000 (11:44 +0000)]
Add ckfputs() [moved here from file.c] and new ckfprintf().

32 years agoRemove ckfputs() function; it's now in print.c.
Ian Darwin [Fri, 11 Sep 1992 11:44:31 +0000 (11:44 +0000)]
Remove ckfputs() function; it's now in print.c.

32 years ago113c113
Ian Darwin [Fri, 11 Sep 1992 11:33:41 +0000 (11:33 +0000)]
113c113
<  ckfputs("dangling symbolic link", stdout);
---
>  printf("dangling symbolic link to %s", fn);

32 years agoChristos' fix for compressed tar archives failing checksum due to strtok
Ian Darwin [Fri, 11 Sep 1992 10:12:10 +0000 (10:12 +0000)]
Christos' fix for compressed tar archives failing checksum due to strtok
tromping the buffer and causing the checksum to fail.

32 years ago|I killed the bug... The problem was that strtok() was corrupting the
Ian Darwin [Fri, 11 Sep 1992 10:08:52 +0000 (10:08 +0000)]
|I killed the bug... The problem was that strtok() was corrupting the
|input buffer so the uncompressed result was not correct, and it would
|fail the tar checksum.
|
|I make a copy to nbuf and use that buffer to strtok()...
|[ascmagic.c bugfix]
|
|I also restored the value of the buffer in another place so that
|buf[] always contains the first HOWMANY bytes of the file.
|[softmagic.c bug fix]
|
|christos

32 years agoInitial revision
Ian Darwin [Wed, 9 Sep 1992 16:38:44 +0000 (16:38 +0000)]
Initial revision

32 years agoAdd notes for localinc and localsrc, new subdirectories.
Ian Darwin [Wed, 9 Sep 1992 16:38:12 +0000 (16:38 +0000)]
Add notes for localinc and localsrc, new subdirectories.

32 years agoAdd comment about local*, and add extraneous "#" comments on continued
Ian Darwin [Wed, 9 Sep 1992 16:32:59 +0000 (16:32 +0000)]
Add comment about local*, and add extraneous "#" comments on continued
comments that AIX (a UNIX-like system) "make" program requires.

32 years agoAdd a plug for the ole' SoftQuad; several other minor changes.
Ian Darwin [Wed, 9 Sep 1992 16:31:46 +0000 (16:31 +0000)]
Add a plug for the ole' SoftQuad; several other minor changes.

32 years agoMinor level 2.
Ian Darwin [Wed, 9 Sep 1992 15:06:00 +0000 (15:06 +0000)]
Minor level 2.

32 years agoAdd -Ilocalinc to (non-default) COPTS line.
Ian Darwin [Wed, 9 Sep 1992 15:05:19 +0000 (15:05 +0000)]
Add -Ilocalinc to (non-default) COPTS line.

32 years agoInclude <sys/types.h> for time_t declaration.
Ian Darwin [Wed, 9 Sep 1992 15:04:16 +0000 (15:04 +0000)]
Include <sys/types.h> for time_t declaration.

32 years agoDelete second declaration of errno; add fallback MAXPATHLEN for SVR0
Ian Darwin [Wed, 9 Sep 1992 15:03:09 +0000 (15:03 +0000)]
Delete second declaration of errno; add fallback MAXPATHLEN for SVR0
and similar systems that lack it.

32 years agoChristos's fix to his fix: make cfkputs() a function, not a macro.
Ian Darwin [Tue, 8 Sep 1992 22:32:35 +0000 (22:32 +0000)]
Christos's fix to his fix: make cfkputs() a function, not a macro.

32 years agoSpell Christos's name correctly.
Ian Darwin [Tue, 8 Sep 1992 22:32:22 +0000 (22:32 +0000)]
Spell Christos's name correctly.

32 years agoClean up lastnocore.
Ian Darwin [Tue, 8 Sep 1992 16:19:25 +0000 (16:19 +0000)]
Clean up lastnocore.

32 years agoChange RCS ID to Id from Header.
Ian Darwin [Tue, 8 Sep 1992 16:16:29 +0000 (16:16 +0000)]
Change RCS ID to Id from Header.

32 years agoChange some BUGS paragraphs.
Ian Darwin [Tue, 8 Sep 1992 16:15:57 +0000 (16:15 +0000)]
Change some BUGS paragraphs.

32 years agoMinor changes to man locations.
Ian Darwin [Tue, 8 Sep 1992 16:15:50 +0000 (16:15 +0000)]
Minor changes to man locations.

32 years agoChange RCS ID from Header to ID.
Ian Darwin [Tue, 8 Sep 1992 15:36:27 +0000 (15:36 +0000)]
Change RCS ID from Header to ID.

32 years agoAdd RCS ID keywords.
Ian Darwin [Tue, 8 Sep 1992 15:32:41 +0000 (15:32 +0000)]
Add RCS ID keywords.

32 years agoInitial revision
Ian Darwin [Tue, 8 Sep 1992 15:32:33 +0000 (15:32 +0000)]
Initial revision

32 years agoAdd RCS ID.
Ian Darwin [Tue, 8 Sep 1992 15:32:09 +0000 (15:32 +0000)]
Add RCS ID.

32 years agoWarn bout stdlib.h, update various minor notes.
Ian Darwin [Tue, 8 Sep 1992 15:28:03 +0000 (15:28 +0000)]
Warn bout stdlib.h, update various minor notes.

32 years agoChange default magic location, man directory, etc.
Ian Darwin [Tue, 8 Sep 1992 15:27:39 +0000 (15:27 +0000)]
Change default magic location, man directory, etc.

32 years agoUpdate for major rev 3.0.
Ian Darwin [Tue, 8 Sep 1992 15:27:23 +0000 (15:27 +0000)]
Update for major rev 3.0.

32 years agoDocument -z now that it works.
Ian Darwin [Tue, 8 Sep 1992 15:07:23 +0000 (15:07 +0000)]
Document -z now that it works.

32 years agoZoulos: fix bug that ran tryit() even if uncompress() failed.
Ian Darwin [Tue, 8 Sep 1992 15:06:05 +0000 (15:06 +0000)]
Zoulos: fix bug that ran tryit() even if uncompress() failed.
Uncomment out the free(newbuf) if uncompress succeeded.

32 years agoZoulos: prototypes for readlink & lstat; make sb a pointer in
Ian Darwin [Tue, 8 Sep 1992 15:04:34 +0000 (15:04 +0000)]
Zoulos: prototypes for readlink & lstat; make sb a pointer in
fsmagic so it's updated in main, and change refs throughout;
use strerror() a few places; other minor changes.

32 years agoZoulos' changes: dynalloc the array of magic data (finally!); add
Ian Darwin [Tue, 8 Sep 1992 15:03:05 +0000 (15:03 +0000)]
Zoulos' changes: dynalloc the array of magic data (finally!); add
HP indirection stuff; some casts and other minor cleanups.

32 years agoZoulos' version: sagans of tiny changes, mostly for dynamic arrays,
Ian Darwin [Tue, 8 Sep 1992 15:01:52 +0000 (15:01 +0000)]
Zoulos' version: sagans of tiny changes, mostly for dynamic arrays,
ANSI C, dropping old cruft.

32 years agoHurray! Zoulos wrote in the missing glop to my framework, to actually
Ian Darwin [Tue, 8 Sep 1992 15:01:08 +0000 (15:01 +0000)]
Hurray! Zoulos wrote in the missing glop to my framework, to actually
*do* the uncompression of a .Z file.

32 years agoZoulos: many small changes. Remove bcmp?
Ian Darwin [Tue, 8 Sep 1992 15:00:32 +0000 (15:00 +0000)]
Zoulos: many small changes. Remove bcmp?

32 years agoZoulos: add varargs, add HP indirection, etc.
Ian Darwin [Tue, 8 Sep 1992 14:59:31 +0000 (14:59 +0000)]
Zoulos: add varargs, add HP indirection, etc.

32 years agoMany changes from Zoulos@cornell.edu: use __P for prototyped functions;
Ian Darwin [Tue, 8 Sep 1992 14:58:34 +0000 (14:58 +0000)]
Many changes from Zoulos@cornell.edu: use __P for prototyped functions;
drop old dregs, add header for HP continuations.

32 years agoMore of same.
Ian Darwin [Tue, 30 Jun 1992 13:38:50 +0000 (13:38 +0000)]
More of same.

32 years agoInitial revision
Ian Darwin [Tue, 30 Jun 1992 13:37:32 +0000 (13:37 +0000)]
Initial revision

32 years agoMake two guys static.
Ian Darwin [Tue, 30 Jun 1992 13:26:20 +0000 (13:26 +0000)]
Make two guys static.

32 years agoZoulos' changes for indirection.
Ian Darwin [Tue, 30 Jun 1992 13:25:59 +0000 (13:25 +0000)]
Zoulos' changes for indirection.

32 years agoZoulos' changes for automatic installation.
Ian Darwin [Tue, 30 Jun 1992 13:25:28 +0000 (13:25 +0000)]
Zoulos' changes for automatic installation.