From: Ian Darwin Date: Wed, 3 Oct 1990 17:53:29 +0000 (+0000) Subject: Up the limit MAXMAGIS, and add mask in struct for bitfield ops. X-Git-Tag: FILE3_27~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a973f37ac8325c3022f3fa05a24dae51bd3c2c3e;p=file Up the limit MAXMAGIS, and add mask in struct for bitfield ops. --- diff --git a/src/file.h b/src/file.h index 847eb762..e4a4d0e8 100644 --- a/src/file.h +++ b/src/file.h @@ -1,6 +1,6 @@ /* * file.h - definitions for file(1) program - # @(#)$Header: /home/glen/git/file/cvs/file/src/file.h,v 1.4 1987/09/18 10:56:09 ian Exp $ + # @(#)$Header: /home/glen/git/file/cvs/file/src/file.h,v 1.5 1990/10/03 17:53:29 ian Exp $ * * Copyright (c) Ian F. Darwin, 1987. * Written by Ian F. Darwin. @@ -27,7 +27,7 @@ */ #define HOWMANY 1024 /* how much of the file to look at */ -#define MAXMAGIS 250 /* max entries in /etc/magic */ +#define MAXMAGIS 300 /* max entries in /etc/magic */ #define MAXDESC 50 /* max leng of text description */ #define MAXstring 32 /* max leng of "string" types */ #define ckfputs(str,fil) {if (fputs(str,fil)==EOF) error(ckfmsg,"");} @@ -37,6 +37,7 @@ struct magic { long offset; /* offset to magic number */ char reln; /* relation (0=eq, '>'=gt, etc) */ char type; /* int, short, long or string. */ + long mask; /* mask for bitfields */ char vallen; /* length of string value, if any */ #define BYTE 1 #define SHORT 2