chiark / gitweb /
bres: Use mdup to duplicate file descriptors for the child.
[mLib] / crc-mktab.c
index 1833e0e2402fa28cc2bb64e2c2cd841f77300df3..200ed327ef1c384079f0765b5485ba14ffaeff95 100644 (file)
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: crc-mktab.c,v 1.5 2003/12/15 20:53:47 mdw Exp $
+ * $Id: crc-mktab.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
  *
  * Build CRC tables
  *
  * (c) 2000 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: crc-mktab.c,v $
- * Revision 1.5  2003/12/15 20:53:47  mdw
- * Add global unihash table; use universal hashing instead of CRC.
- *
- * Revision 1.4  2001/03/10 10:59:21  mdw
- * Fix generating tables where the chunk size is longer than the
- * polynomial.  Also fix output formatting when there aren't enough entries
- * to fill a line.
- *
- * Revision 1.3  2001/01/20 12:06:01  mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.2  2000/10/08 11:07:21  mdw
- * With no arguments, give an error rather than spewing a big table at the
- * user.
- *
- * Revision 1.1  2000/07/21 19:01:33  mdw
- * Generate the CRC table rather than hardcoding it.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
+#include "config.h"
+
 #include <ctype.h>
 #include <errno.h>
 #include <limits.h>
@@ -103,7 +82,7 @@ static void version(FILE *fp)
 static void usage(FILE *fp)
 {
   pquis(fp, "Usage: $ [-cr] [-o FILE] [-g GUARD] [-s SYM] [-i HEADER]\n\
-       [-t TYPE] [-b BITS] [-B BITS] [-p POLY]\n");
+       [-t TYPE] [-b BITS] [-B BITS] [-p POLY]\n");
 }
 
 static void help(FILE *fp)