# Makefile for file(1) cmd.
# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
-# @(#)$Id: Makefile,v 1.35 1993/04/15 17:26:53 ian Exp $
+# @(#)$Id: Makefile,v 1.36 1993/09/23 20:26:25 christos Exp $
#
# This software is not subject to any license of the American Telephone
# and Telegraph Company or of the Regents of the University of California.
(echo mkdir Magdir; $(SHAR) $(ALLMAGIC)) >$@
tar: $(ALLSRC) $(ALLMAGIC)
- tar cvf /dev/rfd0a $(ALLSRC) $(ALLMAGIC)
+ tar cvf file.tar $(ALLSRC) $(ALLMAGIC)
/*
* file.h - definitions for file(1) program
- * @(#)$Id: file.h,v 1.15 1993/09/16 21:08:06 christos Exp $
+ * @(#)$Id: file.h,v 1.16 1993/09/23 20:26:25 christos Exp $
*
* Copyright (c) Ian F. Darwin, 1987.
* Written by Ian F. Darwin.
long offset; /* offset from indirection */
} in;
long offset; /* offset to magic number */
-#define MASK 0200 /* this is a masked op, like & v1 = v2 */
unsigned char reln; /* relation (0=eq, '>'=gt, etc) */
char type; /* int, short, long or string. */
char vallen; /* length of string value, if any */
#ifndef lint
static char *moduleid =
- "@(#)$Id: print.c,v 1.19 1993/09/16 21:15:59 christos Exp $";
+ "@(#)$Id: print.c,v 1.20 1993/09/23 20:26:25 christos Exp $";
#endif /* lint */
#define SZOF(a) (sizeof(a) / sizeof(a[0]))
"*bad*",
stderr);
- if (m->reln & MASK)
- (void) fprintf(stderr, ",%x&%c", m->mask, m->reln & ~MASK);
- else if (m->reln == 'x')
+ if (m->reln == 'x')
(void) fputs(",*any*", stderr);
else
(void) fprintf(stderr, ",%c", m->reln);