## -*-Makefile-*-
##
-## $Id: Makefile.am,v 1.45 2003/12/15 20:53:08 mdw Exp $
+## $Id: Makefile.am,v 1.46 2004/04/08 01:36:11 mdw Exp $
##
## Building the distribution
##
## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
## MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.45 2003/12/15 20:53:08 mdw
-## New program to make fixed tables for universal hashing.
-##
-## Revision 1.44 2003/12/14 14:56:57 mdw
-## Fix distribution.
-##
-## Revision 1.43 2003/12/14 14:45:30 mdw
-## Test universal hashing and fix bugs.
-##
-## Revision 1.42 2003/12/13 20:37:59 mdw
-## Add adns support in background resolver.
-##
-## Revision 1.41 2003/11/29 11:59:17 mdw
-## Various stuff.
-##
-## Revision 1.40 2003/11/10 10:01:14 mdw
-## Various Debian fixes.
-##
-## Revision 1.39 2003/11/09 13:48:43 mdw
-## Debianization\!
-##
-## Revision 1.38 2003/10/12 14:54:18 mdw
-## Version bump.
-##
-## Revision 1.37 2003/10/12 14:44:46 mdw
-## Various fixes.
-##
-## Revision 1.36 2003/05/18 15:17:04 mdw
-## Version bump.
-##
-## Revision 1.35 2003/05/16 00:22:57 mdw
-## Test base64 and hex encoding.
-##
-## Revision 1.34 2003/04/23 12:51:03 mdw
-## New manpage installer.
-##
-## Revision 1.33 2002/01/13 13:26:59 mdw
-## New hex encoding stuff. Rename test programs.
-##
-## Revision 1.32 2001/03/03 12:20:23 mdw
-## New macros @DA_FIRST@ and @DA_LAST@ for stack/queue peeking.
-##
-## Revision 1.31 2001/02/03 18:43:56 mdw
-## New feature: watch a file for changes.
-##
-## Revision 1.30 2001/01/25 21:11:41 mdw
-## Use `$(MAKE)' in the `install-man' rule, so that the jobserver doesn't
-## whinge.
-##
-## Revision 1.29 2001/01/21 19:05:21 mdw
-## Add test driver for associations.
-##
-## Revision 1.28 2001/01/20 12:07:04 mdw
-## Put `bres' in a different place.
-##
-## Revision 1.27 2001/01/20 11:46:49 mdw
-## Add new files.
-##
-## Revision 1.26 2000/10/14 16:46:44 mdw
-## Make sure that the bits testcase gets its test vector from the source
-## directory.
-##
-## Revision 1.25 2000/10/08 11:20:57 mdw
-## Clean some more files.
-##
-## Revision 1.24 2000/10/08 11:08:25 mdw
-## (crc-mktab): now requires str.c.
-##
-## Revision 1.23 2000/07/29 10:06:10 mdw
-## Support `make -j' building.
-##
-## Revision 1.22 2000/07/21 19:01:33 mdw
-## Generate the CRC table rather than hardcoding it.
-##
-## Revision 1.21 2000/07/16 18:57:52 mdw
-## New files. Test cases for `bits.h'.
-##
-## Revision 1.20 2000/06/17 10:39:43 mdw
-## Various new source files.
-##
-## Revision 1.17 1999/11/11 18:47:33 mdw
-## Use `libtool' to generate a shared library.
-##
-## Revision 1.16 1999/11/11 17:48:28 mdw
-## New configuration system for library clients.
-##
-## Revision 1.15 1999/10/22 22:40:49 mdw
-## New source files. New testing system for sym and dynarray.
-##
-## Revision 1.11 1999/07/06 19:36:05 mdw
-## Various minor bugfixes.
-##
-## Revision 1.10 1999/07/06 19:18:47 mdw
-## Handle new manual page directory.
-##
-## Revision 1.8 1999/05/21 22:16:08 mdw
-## Reorder the source files again, in an attempt to make them slightly
-## logical. It hasn't really succeeded, although it is an improvement.
-##
-## Revision 1.6 1999/05/15 10:33:53 mdw
-## Add simplified locking code.
-##
-## Revision 1.5 1999/05/14 21:01:28 mdw
-## Integrated `select' handling bits from the background resolver project.
-##
-## Revision 1.2 1998/11/25 23:30:30 mdw
-## Add `tv.c'and `tv.h' to the list.
-##
-## Revision 1.1.1.1 1998/06/17 23:44:42 mdw
-## Initial version of mLib
-##
-## Revision 1.5 1997/08/13 17:55:43 mdw
-## Add big GPL header. General tidying up.
-##
-
## --- Options ---
AUTOMAKE_OPTIONS = foreign
/* -*-c-*-
*
- * $Id: align.h,v 1.1 2003/10/12 14:44:26 mdw Exp $
+ * $Id: align.h,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Pointer alignment hack
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: align.h,v $
- * Revision 1.1 2003/10/12 14:44:26 mdw
- * General alignment assumptions and tweaks.
- *
- */
-
#ifndef MLIB_ALIGN_H
#define MLIB_ALIGN_H
/* -*-c-*-
*
- * $Id: alloc.c,v 1.5 2000/07/16 12:29:16 mdw Exp $
+ * $Id: alloc.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
*
* Memory allocation functions
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: alloc.c,v $
- * Revision 1.5 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.4 2000/06/17 10:35:51 mdw
- * Major overhaul for arena support.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: alloc.h,v 1.6 2000/07/16 12:29:16 mdw Exp $
+ * $Id: alloc.h,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Memory allocation functions
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: alloc.h,v $
- * Revision 1.6 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.5 2000/06/17 10:35:51 mdw
- * Major overhaul for arena support.
- *
- * Revision 1.4 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_ALLOC_H
#define MLIB_ALLOC_H
/* -*-c-*-
*
- * $Id: arena.c,v 1.4 2001/06/22 19:32:59 mdw Exp $
+ * $Id: arena.c,v 1.5 2004/04/08 01:36:11 mdw Exp $
*
* Abstraction for memory allocation arenas
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: arena.c,v $
- * Revision 1.4 2001/06/22 19:32:59 mdw
- * Remove a space.
- *
- * Revision 1.3 2000/08/06 11:00:18 mdw
- * Daft bug fix. Include <string.h>.
- *
- * Revision 1.2 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.1 2000/06/17 10:37:53 mdw
- * Basic arena management.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdlib.h>
/* -*-c-*-
*
- * $Id: arena.h,v 1.2 2000/07/16 12:29:16 mdw Exp $
+ * $Id: arena.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Abstraction for memory allocation arenas
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: arena.h,v $
- * Revision 1.2 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.1 2000/06/17 10:37:53 mdw
- * Basic arena management.
- *
- */
-
#ifndef MLIB_ARENA_H
#define MLIB_ARENA_H
/* -*-c-*-
*
- * $Id: assoc.c,v 1.3 2001/01/25 21:12:38 mdw Exp $
+ * $Id: assoc.c,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* Assocation tables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: assoc.c,v $
- * Revision 1.3 2001/01/25 21:12:38 mdw
- * Use @ATOM_HASH@ rather than digging in the @atom@ structure.
- *
- * Revision 1.2 2001/01/21 19:04:59 mdw
- * Fix bugs.
- *
- * Revision 1.1 2001/01/20 11:50:58 mdw
- * Hash tables indexed by atoms, to avoid expense of hashing keys on each
- * lookup, and to reduce storage used by key texts.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "alloc.h"
/* -*-c-*-
*
- * $Id: assoc.h,v 1.2 2001/01/25 21:12:22 mdw Exp $
+ * $Id: assoc.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Assocation tables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: assoc.h,v $
- * Revision 1.2 2001/01/25 21:12:22 mdw
- * Add new macro to find an association's atom key.
- *
- * Revision 1.1 2001/01/20 11:50:58 mdw
- * Hash tables indexed by atoms, to avoid expense of hashing keys on each
- * lookup, and to reduce storage used by key texts.
- *
- */
-
#ifndef MLIB_ASSOC_H
#define MLIB_ASSOC_H
/* -*-c-*-
*
- * $Id: atom.c,v 1.4 2003/12/15 20:53:47 mdw Exp $
+ * $Id: atom.c,v 1.5 2004/04/08 01:36:11 mdw Exp $
*
* Atom management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: atom.c,v $
- * Revision 1.4 2003/12/15 20:53:47 mdw
- * Add global unihash table; use universal hashing instead of CRC.
- *
- * Revision 1.3 2001/01/25 21:13:15 mdw
- * New function allowing an atom's length to be specified at intern time.
- *
- * Revision 1.2 2001/01/21 19:04:51 mdw
- * Include `crc32.h' for @CRC32@ macro.
- *
- * Revision 1.1 2001/01/20 11:50:16 mdw
- * Implementation of atom tables (for example, as found in X11).
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: atom.h,v 1.2 2001/01/25 21:13:40 mdw Exp $
+ * $Id: atom.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Atom management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: atom.h,v $
- * Revision 1.2 2001/01/25 21:13:40 mdw
- * New function allowing an atom's length to be specified at intern time.
- * Add @ATOM_HASH@ macro so that assoc doesn't have to dig in the @atom@
- * structure.
- *
- * Revision 1.1 2001/01/20 11:50:16 mdw
- * Implementation of atom tables (for example, as found in X11).
- *
- */
-
#ifndef MLIB_ATOM_H
#define MLIB_ATOM_H
/* -*-c-*-
*
- * $Id: base64.c,v 1.6 2003/05/16 00:22:58 mdw Exp $
+ * $Id: base64.c,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Base64 encoding and decoding.
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: base64.c,v $
- * Revision 1.6 2003/05/16 00:22:58 mdw
- * Test base64 and hex encoding.
- *
- * Revision 1.5 2002/01/13 13:26:16 mdw
- * Change names for internal tables.
- *
- * Revision 1.4 1999/10/15 21:08:46 mdw
- * Change support for erroneous Base64 streams with length 1 mod 4.
- *
- * Revision 1.3 1999/05/21 22:14:30 mdw
- * Take advantage of the new dynamic string macros.
- *
- * Revision 1.2 1999/05/18 21:45:27 mdw
- * Allow Base64 encode and decode of arbitrary rubbish.
- *
- * Revision 1.1 1999/05/17 20:35:00 mdw
- * Base64 encoding and decoding support.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: base64.h,v 1.3 1999/12/10 23:42:04 mdw Exp $
+ * $Id: base64.h,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* Base64 encoding and decoding
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: base64.h,v $
- * Revision 1.3 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.2 1999/05/18 21:45:27 mdw
- * Allow Base64 encode and decode of arbitrary rubbish.
- *
- * Revision 1.1 1999/05/17 20:35:00 mdw
- * Base64 encoding and decoding support.
- *
- */
-
#ifndef MLIB_BASE64_H
#define MLIB_BASE64_H
/* -*-c-*-
*
- * $Id: bits.c,v 1.3 2003/12/14 14:46:11 mdw Exp $
+ * $Id: bits.c,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* Test rig for bits header
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bits.c,v $
- * Revision 1.3 2003/12/14 14:46:11 mdw
- * Use right test vector file name.
- *
- * Revision 1.2 2000/10/14 16:46:44 mdw
- * Make sure that the bits testcase gets its test vector from the source
- * directory.
- *
- * Revision 1.1 2000/07/16 12:28:00 mdw
- * Test equipment for the 64-bit arithmetic in `bits.h'.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "bits.h"
/* -*-c-*-
*
- * $Id: bits.h,v 1.9 2001/01/20 12:05:20 mdw Exp $
+ * $Id: bits.h,v 1.10 2004/04/08 01:36:11 mdw Exp $
*
* Portable bit-level manipulation macros
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bits.h,v $
- * Revision 1.9 2001/01/20 12:05:20 mdw
- * New hack for storing 64-bit numbers in tables.
- *
- * Revision 1.8 2000/10/08 11:06:30 mdw
- * Shut later versions of GCC up about use of @long long@.
- *
- * Revision 1.7 2000/07/22 09:48:26 mdw
- * Added macros for reading 64-bit values.
- *
- * Revision 1.6 2000/07/16 12:28:28 mdw
- * Add 64-bit support, with faked arithmetic on 32-bit hosts.
- *
- * Revision 1.5 2000/06/17 10:36:06 mdw
- * Support for 24-bit types.
- *
- * Revision 1.4 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.3 1999/06/20 23:31:52 mdw
- * More portability enhancements.
- *
- * Revision 1.2 1999/06/17 00:12:46 mdw
- * Improve portability for shift and rotate macros.
- *
- * Revision 1.1 1999/06/01 09:46:19 mdw
- * New addition: bit manipulation macros.
- *
- */
-
#ifndef MLIB_BITS_H
#define MLIB_BITS_H
/* -*-c-*-
*
- * $Id: bres-adns.c,v 1.3 2004/04/03 03:28:54 mdw Exp $
+ * $Id: bres-adns.c,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* Background reverse name resolution (ADNS version)
*
* must be licensed under the full GPL.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bres-adns.c,v $
- * Revision 1.3 2004/04/03 03:28:54 mdw
- * Make ADNS wait for the event loop before collecting replies.
- *
- * Revision 1.2 2003/12/14 14:46:38 mdw
- * Qualify name given to @bres_byname@.
- *
- * Revision 1.1 2003/12/13 20:37:59 mdw
- * Add adns support in background resolver.
- *
- */
-
#ifndef HAVE_ADNS
# error "You need the ADNS library to compile this file."
#endif
/* -*-c-*-
*
- * $Id: bres.c,v 1.6 2001/06/22 19:33:38 mdw Exp $
+ * $Id: bres.c,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Background reverse name resolution
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bres.c,v $
- * Revision 1.6 2001/06/22 19:33:38 mdw
- * Hack if there is no @_SC_OPEN_MAX@ or @OPEN_MAX@.
- *
- * Revision 1.5 2001/02/03 16:21:08 mdw
- * Bug fixes: restore signals to their default dispositions, and set up the
- * addresses properly when unpacking @hostent@ structures.
- *
- * Revision 1.4 2000/08/15 17:35:02 mdw
- * (gethost, and others): Since @gethost@ actually uses @malloc@ rather
- * than @xmalloc@, it's wrong to use @xfree@ on the result. Fixed the code
- * to use the right freeing function on the right data.
- *
- * Revision 1.3 2000/06/17 10:38:35 mdw
- * Track changes to selbuf interface.
- *
- * Revision 1.2 1999/10/30 11:28:39 mdw
- * Fix include error, pointed out by Chris Rutter.
- *
- * Revision 1.1 1999/10/04 21:40:42 mdw
- * Added background resolver from `fw'.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: bres.h,v 1.4 2003/12/13 20:37:59 mdw Exp $
+ * $Id: bres.h,v 1.5 2004/04/08 01:36:11 mdw Exp $
*
* Background reverse name resolution
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bres.h,v $
- * Revision 1.4 2003/12/13 20:37:59 mdw
- * Add adns support in background resolver.
- *
- * Revision 1.3 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.2 1999/10/30 11:56:21 mdw
- * Fix include error, pointed out by Chris Rutter.
- *
- * Revision 1.1 1999/10/04 21:40:42 mdw
- * Added background resolver from `fw'.
- *
- */
-
#ifndef MLIB_RES_H
#define MLIB_RES_H
dnl -*-m4-*-
dnl
-dnl $Id: configure.in,v 1.37 2003/12/13 20:37:59 mdw Exp $
+dnl $Id: configure.in,v 1.38 2004/04/08 01:36:11 mdw Exp $
dnl
dnl Configuration script for mLib
dnl
dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
dnl MA 02111-1307, USA.
-dnl ----- Revision history --------------------------------------------------
-dnl
-dnl $Log: configure.in,v $
-dnl Revision 1.37 2003/12/13 20:37:59 mdw
-dnl Add adns support in background resolver.
-dnl
-dnl Revision 1.36 2003/11/29 20:38:38 mdw
-dnl Debianization fixes.
-dnl
-dnl Revision 1.35 2003/11/29 11:59:17 mdw
-dnl Various stuff.
-dnl
-dnl Revision 1.34 2003/10/12 14:54:18 mdw
-dnl Version bump.
-dnl
-dnl Revision 1.33 2003/05/18 15:17:04 mdw
-dnl Version bump.
-dnl
-dnl Revision 1.32 2003/05/16 00:26:22 mdw
-dnl Version bump.
-dnl
-dnl Revision 1.30 2003/04/23 12:50:30 mdw
-dnl New manpage installer.
-dnl
-dnl Revision 1.29 2001/06/22 19:34:07 mdw
-dnl Find out whether @<float.h>@ exists (hack for uC-Linux).
-dnl
-dnl Revision 1.28 2000/10/08 11:07:55 mdw
-dnl Define a constant to tell @mdwopt@ that @str_qword@ is available.
-dnl Reinstate the `-pedantic' option to GCC.
-dnl
-dnl Revision 1.27 2000/08/15 21:39:13 mdw
-dnl New library configuration stuff from `common'.
-dnl
-dnl Revision 1.25 2000/07/16 18:57:42 mdw
-dnl Version bump. Change compiler flags.
-dnl
-dnl Revision 1.19 1999/11/11 18:47:33 mdw
-dnl Use `libtool' to generate a shared library.
-dnl
-dnl Revision 1.18 1999/11/11 17:48:28 mdw
-dnl New configuration system for library clients.
-dnl
-dnl Revision 1.17 1999/10/04 21:48:50 mdw
-dnl Find libraries for standalone name resolver server.
-dnl
-dnl Revision 1.14 1999/07/06 19:18:47 mdw
-dnl Handle new manual page directory.
-dnl
-dnl Revision 1.11 1999/05/21 22:11:20 mdw
-dnl Omitted version number changes from change log. Changed version
-dnl number. ;-)
-dnl
-dnl Revision 1.8 1999/05/14 21:08:56 mdw
-dnl Bump version number to 1.3, to celebrate adding in the `select'
-dnl routines.
-dnl
-dnl Revision 1.6 1999/05/06 19:51:35 mdw
-dnl Reformatted the LGPL notice a little bit.
-dnl
-dnl Revision 1.5 1999/05/05 18:50:31 mdw
-dnl Change licensing conditions to LGPL.
-dnl
-dnl Revision 1.4 1999/03/24 22:22:57 mdw
-dnl Remove redundant call to AC_PROG_INSTALL.
-dnl
-dnl Revision 1.3 1998/12/15 23:52:42 mdw
-dnl Reordered and tidied.
-dnl
-dnl Revision 1.1.1.1 1998/06/17 23:44:42 mdw
-dnl Initial version of mLib
-dnl
-
AC_INIT(exc.c)
mdw_INIT_LIB(mLib, mLib, 2.0.3)
/* -*-c-*-
*
- * $Id: conn.c,v 1.9 2003/10/12 14:54:00 mdw Exp $
+ * $Id: conn.c,v 1.10 2004/04/08 01:36:11 mdw Exp $
*
* Nonblocking connect handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: conn.c,v $
- * Revision 1.9 2003/10/12 14:54:00 mdw
- * Finish the work.
- *
- * Revision 1.8 2003/10/12 14:47:10 mdw
- * New interface for messing with preconnected sockets.
- *
- * Revision 1.7 2002/01/13 13:28:44 mdw
- * Rearrange @conn_init@ to be a bit more comprehensible.
- *
- * Revision 1.6 2001/06/22 19:35:20 mdw
- * Interface change to @conn_init@ -- return error rather than calling the
- * function. This reduces the number of different environments the
- * callback has to cope with, and the old behaviour is easily simulatable
- * with the new, while simulating the new behaviour was awkward and
- * painful.
- *
- * Revision 1.5 2000/10/08 11:17:26 mdw
- * (conn_connect): Change sizes to be @size_t@.
- *
- * Revision 1.4 1999/07/26 23:21:02 mdw
- * Bug fix: remove the selector before doing the callback, in case client
- * adds a writer for the connected socket.
- *
- * Revision 1.3 1999/05/23 12:12:37 mdw
- * Interface change to make the `conn' selector useful for generic stream
- * sockets rather than just IPv4 ones.
- *
- * Revision 1.2 1999/05/15 10:33:32 mdw
- * Fix copyright notices.
- *
- * Revision 1.1 1999/05/14 21:01:14 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: conn.h,v 1.7 2003/11/29 19:10:53 mdw Exp $
+ * $Id: conn.h,v 1.8 2004/04/08 01:36:11 mdw Exp $
*
* Nonblocking connect handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: conn.h,v $
- * Revision 1.7 2003/11/29 19:10:53 mdw
- * Declare and document @conn_fd@.
- *
- * Revision 1.6 2001/06/22 19:35:20 mdw
- * Interface change to @conn_init@ -- return error rather than calling the
- * function. This reduces the number of different environments the
- * callback has to cope with, and the old behaviour is easily simulatable
- * with the new, while simulating the new behaviour was awkward and
- * painful.
- *
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/05/26 21:08:01 mdw
- * Remove redundant structure member.
- *
- * Revision 1.3 1999/05/23 12:12:46 mdw
- * Interface change to make the `conn' selector useful for generic stream
- * sockets rather than just IPv4 ones.
- *
- * Revision 1.2 1999/05/15 10:33:32 mdw
- * Fix copyright notices.
- *
- * Revision 1.1 1999/05/14 21:01:14 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
#ifndef MLIB_CONN_H
#define MLIB_CONN_H
/* -*-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
*
* 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 <ctype.h>
/* -*-c-*-
*
- * $Id: crc32.c,v 1.5 2000/07/21 19:01:33 mdw Exp $
+ * $Id: crc32.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
*
* Calculating cyclic redundancy values (non-cryptographic!)
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: crc32.c,v $
- * Revision 1.5 2000/07/21 19:01:33 mdw
- * Generate the CRC table rather than hardcoding it.
- *
- * Revision 1.4 1999/06/01 09:47:22 mdw
- * Make the return type of `crc32' a `uint32' now that we have `bits.h'.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: crc32.h,v 1.6 2000/07/02 22:20:42 mdw Exp $
+ * $Id: crc32.h,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Calculating cyclic redundancy values (non-cryptographic!)
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: crc32.h,v $
- * Revision 1.6 2000/07/02 22:20:42 mdw
- * Fix constant name.
- *
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/06/01 09:47:22 mdw
- * Make the return type of `crc32' a `uint32' now that we have `bits.h'.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_CRC32_H
#define MLIB_CRC32_H
/* -*-c-*-
*
- * $Id: darray.c,v 1.6 2000/07/16 12:29:16 mdw Exp $
+ * $Id: darray.c,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Dynamically growing dense arrays
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: darray.c,v $
- * Revision 1.6 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.5 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.4 1999/11/06 12:40:45 mdw
- * Minor changes to allocation strategy.
- *
- * Revision 1.3 1999/10/29 22:59:22 mdw
- * New array adjustment macros for unsigned arguments.
- *
- * Revision 1.2 1999/10/28 22:05:28 mdw
- * Modify and debug allocation routines.
- *
- * Revision 1.1 1999/10/22 22:37:26 mdw
- * New dynamic array implementation replaces `dynarray.h'.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: darray.h,v 1.6 2001/03/03 12:20:23 mdw Exp $
+ * $Id: darray.h,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Dynamically growing dense arrays
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: darray.h,v $
- * Revision 1.6 2001/03/03 12:20:23 mdw
- * New macros @DA_FIRST@ and @DA_LAST@ for stack/queue peeking.
- *
- * Revision 1.5 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.4 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.3 1999/11/05 14:32:43 mdw
- * Minor change in argument naming.
- *
- * Revision 1.2 1999/10/29 22:59:22 mdw
- * New array adjustment macros for unsigned arguments.
- *
- * Revision 1.1 1999/10/22 22:37:26 mdw
- * New dynamic array implementation replaces `dynarray.h'.
- *
- */
-
#ifndef MLIB_DARRAY_H
#define MLIB_DARRAY_H
/* -*-c-*-
*
- * $Id: dputf.c,v 1.5 2002/01/13 13:30:48 mdw Exp $
+ * $Id: dputf.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
*
* `printf'-style formatting for dynamic strings
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dputf.c,v $
- * Revision 1.5 2002/01/13 13:30:48 mdw
- * Change interface for @dstr_vputf@.
- *
- * Revision 1.4 2001/06/22 19:35:29 mdw
- * Find out whether @<float.h>@ exists (hack for uC-Linux).
- *
- * Revision 1.3 2001/01/20 12:06:01 mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.2 2000/08/15 21:26:45 mdw
- * (dstr_vputf): Don't try calling @va_arg@ on things @char@-sized.
- *
- * Revision 1.1 1999/10/04 21:44:47 mdw
- * Move `dstr_putf' and `dstr_vputf' into a separate source file.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: dspool.c,v 1.1 1999/05/21 22:15:26 mdw Exp $
+ * $Id: dspool.c,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Provide pools of strings
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dspool.c,v $
- * Revision 1.1 1999/05/21 22:15:26 mdw
- * Dynamic string pool system, based on an idea from the `sw-tools'
- * project. Could do with more work to make it really good.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: dspool.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: dspool.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Provide pools of strings
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dspool.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/05/21 22:15:26 mdw
- * Dynamic string pool system, based on an idea from the `sw-tools'
- * project. Could do with more work to make it really good.
- *
- */
-
#ifndef MLIB_DSPOOL_H
#define MLIB_DSPOOL_H
/* -*-c-*-
*
- * $Id: dstr.c,v 1.15 2000/07/16 12:29:16 mdw Exp $
+ * $Id: dstr.c,v 1.16 2004/04/08 01:36:11 mdw Exp $
*
* Handle dynamically growing strings
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dstr.c,v $
- * Revision 1.15 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.14 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.13 1999/12/22 15:39:28 mdw
- * Fix overflow in dstr_putline.
- *
- * Revision 1.12 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.11 1999/10/28 22:05:29 mdw
- * Modify and debug allocation routines.
- *
- * Revision 1.10 1999/10/04 21:44:47 mdw
- * Move `dstr_putf' and `dstr_vputf' into a separate source file.
- *
- * Revision 1.9 1999/07/06 19:16:06 mdw
- * Simplify buffer-growing algorithm. Just double it each time.
- *
- * Revision 1.8 1999/06/01 09:47:52 mdw
- * Fix nasty bugs in `dstr_vputf'.
- *
- * Revision 1.7 1999/05/21 22:14:30 mdw
- * Take advantage of the new dynamic string macros.
- *
- * Revision 1.6 1999/05/21 08:38:33 mdw
- * Implement some more functions in terms of macros.
- *
- * Revision 1.5 1999/05/13 22:47:57 mdw
- * Misc documentation fixes. Change `-ise' to `-ize' throughout.
- *
- * Revision 1.4 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.3 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.2 1998/12/15 23:53:22 mdw
- * New functions `dstr_putf' and `dstr_vputf' which do `printf'-style
- * formatting in a safe way.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: dstr.h,v 1.12 2002/01/13 13:30:48 mdw Exp $
+ * $Id: dstr.h,v 1.13 2004/04/08 01:36:11 mdw Exp $
*
* Handle dynamically growing strings
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dstr.h,v $
- * Revision 1.12 2002/01/13 13:30:48 mdw
- * Change interface for @dstr_vputf@.
- *
- * Revision 1.11 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.10 1999/12/22 15:39:51 mdw
- * Fix argument reuse in DPUTS.
- *
- * Revision 1.9 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.8 1999/07/14 19:45:24 mdw
- * Prevent some macros from re-evaluating their arguments.
- *
- * Revision 1.7 1999/05/21 22:12:12 mdw
- * Fix the bugs in the new macros. (Whoops.)
- *
- * Revision 1.6 1999/05/21 08:38:14 mdw
- * Add some more macros, particularly for creation and destruction.
- *
- * Revision 1.5 1999/05/13 22:47:57 mdw
- * Misc documentation fixes. Change `-ise' to `-ize' throughout.
- *
- * Revision 1.4 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.3 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.2 1998/12/15 23:53:23 mdw
- * New functions `dstr_putf' and `dstr_vputf' which do `printf'-style
- * formatting in a safe way.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_DSTR_H
#define MLIB_DSTR_H
/* -*-c-*-
*
- * $Id: env.c,v 1.4 2001/01/25 21:14:26 mdw Exp $
+ * $Id: env.c,v 1.5 2004/04/08 01:36:11 mdw Exp $
*
* Fiddling with environment variables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: env.c,v $
- * Revision 1.4 2001/01/25 21:14:26 mdw
- * Nowadays, @SYM_LEN@ doesn't include the terminating null, so revise the
- * buffer-usage calculation.
- *
- * Revision 1.3 2001/01/20 11:48:10 mdw
- * Use new @SYM_LEN@ macro for name lengths.
- *
- * Revision 1.2 2000/06/17 10:39:00 mdw
- * Add support for arena management.
- *
- * Revision 1.1 1999/07/26 23:15:57 mdw
- * Fiddling with environment variables.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: env.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: env.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Fiddling with environment variables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: env.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/07/26 23:15:57 mdw
- * Fiddling with environment variables.
- *
- */
-
#ifndef MLIB_ENV_H
#define MLIB_ENV_H
/* -*-c-*-
*
- * $Id: exc.c,v 1.5 1999/05/19 20:27:11 mdw Exp $
+ * $Id: exc.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
*
* Structured exception handling in C
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: exc.c,v $
- * Revision 1.5 1999/05/19 20:27:11 mdw
- * Change naming to match newer mLib conventions.
- *
- * Revision 1.4 1999/05/17 20:35:30 mdw
- * Output uncaught exception types in hex, because they're easier to
- * translate that way.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
/* -*-c-*-
*
- * $Id: exc.h,v 1.6 2000/08/07 19:50:18 mdw Exp $
+ * $Id: exc.h,v 1.7 2004/04/08 01:36:11 mdw Exp $
*
* Structured exception handling in C
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: exc.h,v $
- * Revision 1.6 2000/08/07 19:50:18 mdw
- * Fix typo in comment.
- *
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/10/22 22:39:18 mdw
- * Add an exception group for mLib.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_EXC_H
#define MLIB_EXC_H
/* -*-c-*-
*
- * $Id: fdflags.c,v 1.1 1999/07/26 23:16:59 mdw Exp $
+ * $Id: fdflags.c,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Manipulates flags on file descriptors
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fdflags.c,v $
- * Revision 1.1 1999/07/26 23:16:59 mdw
- * Manipulate file descriptor flags.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: fdflags.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: fdflags.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Manipulates flags on file descriptors
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fdflags.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/07/26 23:16:59 mdw
- * Manipulate file descriptor flags.
- *
- */
-
#ifndef MLIB_FDFLAGS_H
#define MLIB_FDFLAGS_H
/* -*-c-*-
*
- * $Id: fdpass.c,v 1.1 2003/11/29 11:58:49 mdw Exp $
+ * $Id: fdpass.c,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* File descriptor passing
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fdpass.c,v $
- * Revision 1.1 2003/11/29 11:58:49 mdw
- * File descriptor passing.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: fdpass.h,v 1.1 2003/11/29 11:58:49 mdw Exp $
+ * $Id: fdpass.h,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* File descriptor passing
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fdpass.h,v $
- * Revision 1.1 2003/11/29 11:58:49 mdw
- * File descriptor passing.
- *
- */
-
#ifndef MLIB_FDPASS_H
#define MLIB_FDPASS_H
/* -*-c-*-
*
- * $Id: fwatch.c,v 1.1 2001/02/03 18:43:56 mdw Exp $
+ * $Id: fwatch.c,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Watch a file for changes
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fwatch.c,v $
- * Revision 1.1 2001/02/03 18:43:56 mdw
- * New feature: watch a file for changes.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: fwatch.h,v 1.1 2001/02/03 18:43:56 mdw Exp $
+ * $Id: fwatch.h,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Watch a file for changes
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fwatch.h,v $
- * Revision 1.1 2001/02/03 18:43:56 mdw
- * New feature: watch a file for changes.
- *
- */
-
#ifndef MLIB_FWATCH_H
#define MLIB_FWATCH_H
/* -*-c-*-
*
- * $Id: hash.c,v 1.3 2000/07/16 12:29:16 mdw Exp $
+ * $Id: hash.c,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* General hashtable infrastructure
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: hash.c,v $
- * Revision 1.3 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.2 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.1 1999/08/02 14:45:48 mdw
- * Break low-level hashtable code out from sym.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: hash.h,v 1.3 2000/06/17 10:37:39 mdw Exp $
+ * $Id: hash.h,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* General hashtable infrastructure
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: hash.h,v $
- * Revision 1.3 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/08/02 14:45:48 mdw
- * Break low-level hashtable code out from sym.
- *
- */
-
#ifndef MLIB_HASH_H
#define MLIB_HASH_H
/* -*-c-*-
*
- * $Id: hex.c,v 1.2 2003/05/16 00:22:58 mdw Exp $
+ * $Id: hex.c,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Hexadecimal encoding and decoding.
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: hex.c,v $
- * Revision 1.2 2003/05/16 00:22:58 mdw
- * Test base64 and hex encoding.
- *
- * Revision 1.1 2002/01/13 13:26:30 mdw
- * New hex encoding stuff.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: hex.h,v 1.1 2002/01/13 13:26:30 mdw Exp $
+ * $Id: hex.h,v 1.2 2004/04/08 01:36:11 mdw Exp $
*
* Hexadecimal encoding and decoding
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: hex.h,v $
- * Revision 1.1 2002/01/13 13:26:30 mdw
- * New hex encoding stuff.
- *
- */
-
#ifndef MLIB_HEX_H
#define MLIB_HEX_H
/* -*-c-*-
*
- * $Id: ident.c,v 1.5 2002/01/13 13:33:15 mdw Exp $
+ * $Id: ident.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
*
* Nonblocking RFC931 client
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ident.c,v $
- * Revision 1.5 2002/01/13 13:33:15 mdw
- * Track interface change for @lbuf@.
- *
- * Revision 1.4 2001/06/22 19:35:39 mdw
- * New @conn_init@ interface.
- *
- * Revision 1.3 2000/10/08 11:17:45 mdw
- * (ident_socket): change sizes to be @size_t@.
- *
- * Revision 1.2 2000/06/17 10:38:35 mdw
- * Track changes to selbuf interface.
- *
- * Revision 1.1 1999/10/04 21:41:58 mdw
- * Added ident client from `fw'.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: ident.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: ident.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Nonblocking RFC931 client
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ident.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/10/04 21:41:58 mdw
- * Added ident client from `fw'.
- *
- */
-
#ifndef MLIB_IDENT_H
#define MLIB_IDENT_H
/* -*-c-*-
*
- * $Id: lbuf.c,v 1.6 2002/01/13 13:32:52 mdw Exp $
+ * $Id: lbuf.c,v 1.7 2004/04/08 01:36:13 mdw Exp $
*
* Block-to-line buffering
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lbuf.c,v $
- * Revision 1.6 2002/01/13 13:32:52 mdw
- * Pass line length to line handler function. Provide a @typedef@ for
- * handler functions. Allow run-time configuration of line delimiters.
- *
- * Revision 1.5 2001/02/03 16:23:33 mdw
- * Bug fix: handle a disable during a close-induced flush without dumping
- * core.
- *
- * Revision 1.4 2000/06/17 10:38:14 mdw
- * Add support for variable buffer sizes.
- *
- * Revision 1.3 1999/05/22 13:38:50 mdw
- * Fix bug which discarded initial portions of incomplete lines.
- *
- * Revision 1.2 1999/05/17 20:36:08 mdw
- * Make the magical constants for the buffer flags uppercase.
- *
- * Revision 1.1 1999/05/14 21:01:14 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
/* -*-c-*-
*
- * $Id: lbuf.h,v 1.7 2002/01/13 13:32:52 mdw Exp $
+ * $Id: lbuf.h,v 1.8 2004/04/08 01:36:13 mdw Exp $
*
* Block-to-line buffering
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lbuf.h,v $
- * Revision 1.7 2002/01/13 13:32:52 mdw
- * Pass line length to line handler function. Provide a @typedef@ for
- * handler functions. Allow run-time configuration of line delimiters.
- *
- * Revision 1.6 2001/02/03 16:23:33 mdw
- * Bug fix: handle a disable during a close-induced flush without dumping
- * core.
- *
- * Revision 1.5 2001/01/20 12:06:01 mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.4 2000/06/17 10:38:14 mdw
- * Add support for variable buffer sizes.
- *
- * Revision 1.3 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.2 1999/05/17 20:36:08 mdw
- * Make the magical constants for the buffer flags uppercase.
- *
- * Revision 1.1 1999/05/14 21:01:14 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
#ifndef MLIB_LBUF_H
#define MLIB_LBUF_H
/* -*-c-*-
*
- * $Id: lock.c,v 1.5 1999/06/19 20:35:45 mdw Exp $
+ * $Id: lock.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Simplified POSIX locking interface
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lock.c,v $
- * Revision 1.5 1999/06/19 20:35:45 mdw
- * Whoops. I'd left the type of the jump buffer as `sigjmp_buf'.
- *
- * Revision 1.4 1999/06/19 20:33:16 mdw
- * More sophisticated and excessive signal and alarm handling.
- *
- * Revision 1.3 1999/06/06 01:23:00 mdw
- * Fix signal handling.
- *
- * Revision 1.2 1999/05/26 20:53:40 mdw
- * Fixes for stupid bugs.
- *
- * Revision 1.1 1999/05/15 10:33:53 mdw
- * Add simplified locking code.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: lock.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: lock.h,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Simplified POSIX locking interface
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lock.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/05/15 10:33:53 mdw
- * Add simplified locking code.
- *
- */
-
#ifndef MLIB_LOCK_H
#define MLIB_LOCK_H
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: macros.h,v $
- * Revision 1.1 2003/12/13 20:37:59 mdw
- * Add adns support in background resolver.
- *
- */
-
#ifndef MLIB_MACROS_H
#define MLIB_MACROS_H
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.8 2003/12/15 20:53:08 mdw Exp $
+## $Id: Makefile.am,v 1.9 2004/04/08 01:36:13 mdw Exp $
##
## Makefile for mLib's manual pages
##
## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
## MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.8 2003/12/15 20:53:08 mdw
-## New program to make fixed tables for universal hashing.
-##
-## Revision 1.7 2003/12/14 14:57:35 mdw
-## Distribute unihash manpage.
-##
-## Revision 1.6 2003/12/13 20:37:59 mdw
-## Add adns support in background resolver.
-##
-## Revision 1.5 2003/11/29 11:59:17 mdw
-## Various stuff.
-##
-## Revision 1.4 2003/11/09 13:48:32 mdw
-## Ooops. Fix distribution.
-##
-## Revision 1.3 2003/11/09 13:13:49 mdw
-## Document crc-mktab a little.
-##
-## Revision 1.2 2003/05/16 00:24:05 mdw
-## maninst isn't shipped here.
-##
-## Revision 1.1 2003/04/23 12:48:19 mdw
-## New manpage installer.
-##
-## Revision 1.2 1999/07/06 19:36:05 mdw
-## Various minor bugfixes.
-##
-## Revision 1.1 1999/07/06 19:14:22 mdw
-## Makefile for manual page installation. Subtle and complicated.
-##
-
AUTOMAKE_OPTIONS = foreign
manext = @manext@
/* -*-c-*-
*
- * $Id: pkbuf.c,v 1.6 2003/04/23 12:47:44 mdw Exp $
+ * $Id: pkbuf.c,v 1.7 2004/04/08 01:36:13 mdw Exp $
*
* Simple packet buffering
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pkbuf.c,v $
- * Revision 1.6 2003/04/23 12:47:44 mdw
- * Various bugfixes.
- *
- * Revision 1.5 2002/01/13 13:33:51 mdw
- * Packet handler functions now have a @typedef@ name.
- *
- * Revision 1.4 2001/02/03 16:23:33 mdw
- * Bug fix: handle a disable during a close-induced flush without dumping
- * core.
- *
- * Revision 1.3 2000/07/16 18:55:45 mdw
- * Remove some stray debugging code.
- *
- * Revision 1.2 2000/07/16 12:29:16 mdw
- * Change to arena `realloc' interface, to fix a design bug.
- *
- * Revision 1.1 2000/06/17 10:39:19 mdw
- * Experimental new support for packet buffering.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: pkbuf.h,v 1.4 2002/01/13 13:33:51 mdw Exp $
+ * $Id: pkbuf.h,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Simple packet buffering
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pkbuf.h,v $
- * Revision 1.4 2002/01/13 13:33:51 mdw
- * Packet handler functions now have a @typedef@ name.
- *
- * Revision 1.3 2001/02/03 16:23:33 mdw
- * Bug fix: handle a disable during a close-induced flush without dumping
- * core.
- *
- * Revision 1.2 2001/01/20 12:06:01 mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.1 2000/06/17 10:39:19 mdw
- * Experimental new support for packet buffering.
- *
- */
-
#ifndef MLIB_PKBUF_H
#define MLIB_PKBUF_H
/* -*-c-*-
*
- * $Id: pool-file.c,v 1.1 2000/07/16 12:28:48 mdw Exp $
+ * $Id: pool-file.c,v 1.2 2004/04/08 01:36:13 mdw Exp $
*
* File handles in resource pools
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pool-file.c,v $
- * Revision 1.1 2000/07/16 12:28:48 mdw
- * Support for resource pools, based on the Apache model.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: pool-sub.c,v 1.1 2000/07/16 12:28:48 mdw Exp $
+ * $Id: pool-sub.c,v 1.2 2004/04/08 01:36:13 mdw Exp $
*
* Subarenas in resource pools
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pool-sub.c,v $
- * Revision 1.1 2000/07/16 12:28:48 mdw
- * Support for resource pools, based on the Apache model.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "pool.h"
/* -*-c-*-
*
- * $Id: pool.c,v 1.2 2003/10/12 14:44:46 mdw Exp $
+ * $Id: pool.c,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Resource pool handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pool.c,v $
- * Revision 1.2 2003/10/12 14:44:46 mdw
- * Various fixes.
- *
- * Revision 1.1 2000/07/16 12:28:48 mdw
- * Support for resource pools, based on the Apache model.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "align.h"
/* -*-c-*-
*
- * $Id: pool.h,v 1.1 2000/07/16 12:28:48 mdw Exp $
+ * $Id: pool.h,v 1.2 2004/04/08 01:36:13 mdw Exp $
*
* Resource pool handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pool.h,v $
- * Revision 1.1 2000/07/16 12:28:48 mdw
- * Support for resource pools, based on the Apache model.
- *
- */
-
#ifndef MLIB_POOL_H
#define MLIB_POOL_H
/* -*-c-*-
*
- * $Id: pquis.c,v 1.1 1999/10/04 21:43:29 mdw Exp $
+ * $Id: pquis.c,v 1.2 2004/04/08 01:36:13 mdw Exp $
*
* Print strings, substituting the program name
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: pquis.c,v $
- * Revision 1.1 1999/10/04 21:43:29 mdw
- * New function `pquis'.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: quis.c,v 1.5 1999/10/04 21:44:06 mdw Exp $
+ * $Id: quis.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Setting the program name
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: quis.c,v $
- * Revision 1.5 1999/10/04 21:44:06 mdw
- * Undefine PATHSEP when finished with.
- *
- * Revision 1.4 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.3 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.2 1999/02/28 15:16:29 mdw
- * quis: remove the leading `-' from the name, in case we're invoked as a
- * login shell.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdarg.h>
/* -*-c-*-
*
- * $Id: quis.h,v 1.5 1999/12/10 23:42:04 mdw Exp $
+ * $Id: quis.h,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Setting the program name
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: quis.h,v $
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/10/04 21:43:29 mdw
- * New function `pquis'.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_PROGNAME_H
#define MLIB_PROGNAME_H
/* -*-c-*-
*
- * $Id: report.c,v 1.3 1999/05/06 19:51:35 mdw Exp $
+ * $Id: report.c,v 1.4 2004/04/08 01:36:13 mdw Exp $
*
* Reporting errors and things
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: report.c,v $
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdarg.h>
/* -*-c-*-
*
- * $Id: report.h,v 1.4 1999/12/10 23:42:04 mdw Exp $
+ * $Id: report.h,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Reporting errors and things
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: report.h,v $
- * Revision 1.4 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_REPORT_H
#define MLIB_REPORT_H
/* -*-c-*-
*
- * $Id: sel.c,v 1.12 2003/05/18 15:10:29 mdw Exp $
+ * $Id: sel.c,v 1.13 2004/04/08 01:36:13 mdw Exp $
*
* I/O multiplexing support
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sel.c,v $
- * Revision 1.12 2003/05/18 15:10:29 mdw
- * Remove memory leak.
- *
- * Revision 1.11 2003/05/17 10:34:04 mdw
- * Tidying and bugfixing.
- *
- * Revision 1.10 2001/06/22 19:35:58 mdw
- * Fix a large number of bugs.
- *
- * Revision 1.9 2001/02/03 19:07:08 mdw
- * Ensure that timers set to go off in the past don't case a problem.
- *
- * Revision 1.8 2000/03/23 20:42:08 mdw
- * Rearrange timeout handling to avoid list corruptions.
- *
- * Revision 1.7 1999/12/11 11:12:17 mdw
- * Fix comment formatting error.
- *
- * Revision 1.6 1999/09/26 14:28:11 mdw
- * (sel_select): Almost pointless efficiency tweak.
- *
- * Revision 1.5 1999/08/31 17:42:22 mdw
- * New function `sel_force' to force a descriptor to be `selected'.
- *
- * Revision 1.4 1999/08/19 18:30:26 mdw
- * Implement hooks for foreign select-using systems (currently not well
- * tested).
- *
- * Revision 1.3 1999/05/21 22:13:59 mdw
- * Use new `tv' macros. Fix ordering bug for timeout selectors.
- *
- * Revision 1.2 1999/05/15 10:33:32 mdw
- * Fix copyright notices.
- *
- * Revision 1.1 1999/05/14 21:01:14 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
/* -*-c-*-
*
- * $Id: sel.h,v 1.9 2003/05/17 10:34:04 mdw Exp $
+ * $Id: sel.h,v 1.10 2004/04/08 01:36:13 mdw Exp $
*
* I/O multiplexing support
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sel.h,v $
- * Revision 1.9 2003/05/17 10:34:04 mdw
- * Tidying and bugfixing.
- *
- * Revision 1.8 2001/06/22 19:35:58 mdw
- * Fix a large number of bugs.
- *
- * Revision 1.7 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.6 1999/08/31 17:42:22 mdw
- * New function `sel_force' to force a descriptor to be `selected'.
- *
- * Revision 1.5 1999/08/19 18:30:26 mdw
- * Implement hooks for foreign select-using systems (currently not well
- * tested).
- *
- * Revision 1.4 1999/05/22 13:39:15 mdw
- * Change spelling of `multiplexor'. ;-)
- *
- * Revision 1.3 1999/05/17 20:36:36 mdw
- * Make the selector type symbols an enumeration rather than a bunch of
- * #defines.
- *
- * Revision 1.2 1999/05/15 10:33:32 mdw
- * Fix copyright notices.
- *
- * Revision 1.1 1999/05/14 21:01:15 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
#ifndef MLIB_SEL_H
#define MLIB_SEL_H
/* -*-c-*-
*
- * $Id: selbuf.c,v 1.5 2002/01/13 13:33:15 mdw Exp $
+ * $Id: selbuf.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Line-buffering select handler
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: selbuf.c,v $
- * Revision 1.5 2002/01/13 13:33:15 mdw
- * Track interface change for @lbuf@.
- *
- * Revision 1.4 2000/06/17 10:38:14 mdw
- * Add support for variable buffer sizes.
- *
- * Revision 1.3 1999/05/22 13:41:00 mdw
- * Fix end-of-file detection and error handling.
- *
- * Revision 1.2 1999/05/17 20:36:50 mdw
- * Make the magical constants for the buffer flags uppercase.
- *
- * Revision 1.1 1999/05/14 21:01:15 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: selbuf.h,v 1.4 2002/01/13 13:33:15 mdw Exp $
+ * $Id: selbuf.h,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Line-buffering select handler
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: selbuf.h,v $
- * Revision 1.4 2002/01/13 13:33:15 mdw
- * Track interface change for @lbuf@.
- *
- * Revision 1.3 2000/06/17 10:38:14 mdw
- * Add support for variable buffer sizes.
- *
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/05/14 21:01:15 mdw
- * Integrated `select' handling bits from the background resolver project.
- *
- */
-
#ifndef MLIB_SELBUF_H
#define MLIB_SELBUF_H
/* -*-c-*-
*
- * $Id: selpk.c,v 1.2 2002/01/13 13:33:51 mdw Exp $
+ * $Id: selpk.c,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Packet-buffering select handler
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: selpk.c,v $
- * Revision 1.2 2002/01/13 13:33:51 mdw
- * Packet handler functions now have a @typedef@ name.
- *
- * Revision 1.1 2000/06/17 10:39:19 mdw
- * Experimental new support for packet buffering.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: selpk.h,v 1.3 2002/01/13 13:33:51 mdw Exp $
+ * $Id: selpk.h,v 1.4 2004/04/08 01:36:13 mdw Exp $
*
* Packet-buffering select handler
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: selpk.h,v $
- * Revision 1.3 2002/01/13 13:33:51 mdw
- * Packet handler functions now have a @typedef@ name.
- *
- * Revision 1.2 2000/07/16 18:56:00 mdw
- * Fix a function declaration which slipped through the net.
- *
- * Revision 1.1 2000/06/17 10:39:19 mdw
- * Experimental new support for packet buffering.
- *
- */
-
#ifndef MLIB_SELPK_H
#define MLIB_SELPK_H
/* -*-c-*-
*
- * $Id: sig.c,v 1.2 1999/08/19 18:31:04 mdw Exp $
+ * $Id: sig.c,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Signal handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sig.c,v $
- * Revision 1.2 1999/08/19 18:31:04 mdw
- * Improve signal handling to prevent signals from being lost.
- *
- * Revision 1.1 1999/07/26 23:16:26 mdw
- * Signal handling integrated into I/O system.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
/* -*-c-*-
*
- * $Id: sig.h,v 1.2 1999/12/10 23:42:04 mdw Exp $
+ * $Id: sig.h,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Signal handling
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sig.h,v $
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/07/26 23:16:26 mdw
- * Signal handling integrated into I/O system.
- *
- */
-
#ifndef MLIB_SIG_H
#define MLIB_SIG_H
/* -*-c-*-
*
- * $Id: str.c,v 1.5 2000/10/08 09:50:11 mdw Exp $
+ * $Id: str.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Functions for hacking with strings
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: str.c,v $
- * Revision 1.5 2000/10/08 09:50:11 mdw
- * (str_qword): Remove redundant definition of @STRF_QUOTE@.
- *
- * Revision 1.4 2000/10/08 09:43:34 mdw
- * New quoted string handling and simple pattern matching.
- *
- * Revision 1.3 1999/12/22 15:41:14 mdw
- * Skip past trailing whitespace in str_getword.
- *
- * Revision 1.2 1999/05/26 20:52:57 mdw
- * Add new `rest' argument for `str_split'.
- *
- * Revision 1.1 1999/05/17 20:37:01 mdw
- * Some trivial string hacks.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: str.h,v 1.4 2000/10/08 09:43:34 mdw Exp $
+ * $Id: str.h,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Functions for hacking with strings
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: str.h,v $
- * Revision 1.4 2000/10/08 09:43:34 mdw
- * New quoted string handling and simple pattern matching.
- *
- * Revision 1.3 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.2 1999/05/26 20:52:57 mdw
- * Add new `rest' argument for `str_split'.
- *
- * Revision 1.1 1999/05/17 20:37:01 mdw
- * Some trivial string hacks.
- *
- */
-
#ifndef MLIB_STR_H
#define MLIB_STR_H
/* -*-c-*-
*
- * $Id: sub.c,v 1.8 2003/10/12 14:44:46 mdw Exp $
+ * $Id: sub.c,v 1.9 2004/04/08 01:36:13 mdw Exp $
*
* Allocation of known-size blocks
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sub.c,v $
- * Revision 1.8 2003/10/12 14:44:46 mdw
- * Various fixes.
- *
- * Revision 1.7 2003/05/18 15:10:20 mdw
- * Add debugging mode which just uses the underlying arena.
- *
- * Revision 1.6 2000/06/17 10:35:51 mdw
- * Major overhaul for arena support.
- *
- * Revision 1.5 1999/05/19 20:27:11 mdw
- * Change naming to match newer mLib conventions.
- *
- * Revision 1.4 1999/05/13 22:48:55 mdw
- * Change `-ise' to `-ize' throughout.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- The big idea ------------------------------------------------------*
*
* This file provides an extra layer over @malloc@. It provides fast
/* -*-c-*-
*
- * $Id: sub.h,v 1.7 2003/10/12 14:44:46 mdw Exp $
+ * $Id: sub.h,v 1.8 2004/04/08 01:36:13 mdw Exp $
*
* Allocation of known-size blocks
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sub.h,v $
- * Revision 1.7 2003/10/12 14:44:46 mdw
- * Various fixes.
- *
- * Revision 1.6 2000/06/17 10:35:51 mdw
- * Major overhaul for arena support.
- *
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/05/13 22:48:55 mdw
- * Change `-ise' to `-ize' throughout.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_SUB_H
#define MLIB_SUB_H
/* -*-c-*-
*
- * $Id: sym.c,v 1.14 2003/12/15 20:53:47 mdw Exp $
+ * $Id: sym.c,v 1.15 2004/04/08 01:36:13 mdw Exp $
*
* Symbol table management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sym.c,v $
- * Revision 1.14 2003/12/15 20:53:47 mdw
- * Add global unihash table; use universal hashing instead of CRC.
- *
- * Revision 1.13 2001/01/25 21:14:49 mdw
- * Always add a terminating null, and don't count it in the length.
- *
- * Revision 1.12 2001/01/20 11:49:37 mdw
- * Export tuning parameters from header file, for the benefit of other
- * hashtable implementations. Change the storage of symbol names: store
- * the name after the allocated symbol block in all cases. This replaces
- * the previous complicated and slightly wasteful arrangement.
- *
- * Revision 1.11 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.10 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.9 1999/10/22 22:36:37 mdw
- * New test structure for symbol tables.
- *
- * Revision 1.8 1999/08/02 14:45:48 mdw
- * Break low-level hashtable code out from sym.
- *
- * Revision 1.7 1999/06/01 09:49:08 mdw
- * Allow things to be looked up by just their caller-supplied hashes. This
- * actually needs to be thought through better.
- *
- * Revision 1.6 1999/05/26 21:08:31 mdw
- * Rename symbols in line with newer conventions.
- *
- * Revision 1.5 1999/05/13 22:48:37 mdw
- * Twiddle the extension threshold. Change `-ise' to `-ize' throughout.
- *
- * Revision 1.4 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.3 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.2 1998/11/26 19:27:33 mdw
- * Move SYM_NAME into the header file. Fix bugs.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: sym.h,v 1.13 2003/12/15 20:53:47 mdw Exp $
+ * $Id: sym.h,v 1.14 2004/04/08 01:36:13 mdw Exp $
*
* Symbol table management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: sym.h,v $
- * Revision 1.13 2003/12/15 20:53:47 mdw
- * Add global unihash table; use universal hashing instead of CRC.
- *
- * Revision 1.12 2001/01/20 11:49:37 mdw
- * Export tuning parameters from header file, for the benefit of other
- * hashtable implementations. Change the storage of symbol names: store
- * the name after the allocated symbol block in all cases. This replaces
- * the previous complicated and slightly wasteful arrangement.
- *
- * Revision 1.11 2000/06/17 10:37:39 mdw
- * Add support for arena management.
- *
- * Revision 1.10 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.9 1999/08/02 16:53:48 mdw
- * Improve type safety for sym_iter objects.
- *
- * Revision 1.8 1999/08/02 14:45:48 mdw
- * Break low-level hashtable code out from sym.
- *
- * Revision 1.7 1999/06/01 09:49:33 mdw
- * Allow things to be looked up by just their caller-supplied hashes. This
- * actually needs to be thought through better.
- *
- * Revision 1.6 1999/05/26 21:08:31 mdw
- * Rename symbols in line with newer conventions.
- *
- * Revision 1.5 1999/05/13 22:48:37 mdw
- * Change `-ise' to `-ize' throughout.
- *
- * Revision 1.4 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.3 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.2 1998/11/26 19:27:34 mdw
- * Move SYM_NAME into the header file. Fix bugs.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_SYM_H
#define MLIB_SYM_H
/* -*-c-*-
*
- * $Id: testrig.c,v 1.9 2000/06/17 10:35:07 mdw Exp $
+ * $Id: testrig.c,v 1.10 2004/04/08 01:36:13 mdw Exp $
*
* Generic test driver
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: testrig.c,v $
- * Revision 1.9 2000/06/17 10:35:07 mdw
- * Initialize the token buffer properly.
- *
- * Revision 1.8 1999/12/10 23:41:37 mdw
- * Support for different sizes and types of integers.
- *
- * Revision 1.7 1999/11/21 13:01:39 mdw
- * Allow more characters to start words in test vector files.
- *
- * Revision 1.6 1999/11/16 15:03:23 mdw
- * Mark test types as constant.
- *
- * Revision 1.5 1999/05/21 22:14:30 mdw
- * Take advantage of the new dynamic string macros.
- *
- * Revision 1.4 1999/05/19 19:02:17 mdw
- * Aesthetic changes: fix spelling of `initialize'; use uppercase token
- * constants; abandon old double-underscore convention for internal
- * functions and variables.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: testrig.h,v 1.6 1999/12/10 23:41:37 mdw Exp $
+ * $Id: testrig.h,v 1.7 2004/04/08 01:36:13 mdw Exp $
*
* Generic test driver
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: testrig.h,v $
- * Revision 1.6 1999/12/10 23:41:37 mdw
- * Support for different sizes and types of integers.
- *
- * Revision 1.5 1999/11/16 15:03:31 mdw
- * Mark test types as constant.
- *
- * Revision 1.4 1999/07/06 19:15:28 mdw
- * Comment out argument in structure definition.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_TESTER_H
#define MLIB_TESTER_H
/* -*-c-*-
*
- * $Id: trace.c,v 1.7 2002/01/13 13:34:32 mdw Exp $
+ * $Id: trace.c,v 1.8 2004/04/08 01:36:13 mdw Exp $
*
* Tracing functions for debugging
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: trace.c,v $
- * Revision 1.7 2002/01/13 13:34:32 mdw
- * Track @dstr_vputf@ interface change.
- *
- * Revision 1.6 2001/02/03 16:23:55 mdw
- * New custom trace output interface.
- *
- * Revision 1.5 1999/10/22 22:39:52 mdw
- * New documented interface for tracing.
- *
- * Revision 1.4 1999/05/19 20:27:11 mdw
- * Change naming to match newer mLib conventions.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: trace.h,v 1.6 2001/02/03 16:23:55 mdw Exp $
+ * $Id: trace.h,v 1.7 2004/04/08 01:36:13 mdw Exp $
*
* Tracing functions for debugging
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: trace.h,v $
- * Revision 1.6 2001/02/03 16:23:55 mdw
- * New custom trace output interface.
- *
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/10/22 22:39:52 mdw
- * New documented interface for tracing.
- *
- * Revision 1.3 1999/05/06 19:51:35 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_TRACE_H
#define MLIB_TRACE_H
/* -*-c-*-
*
- * $Id: traceopt.c,v 1.2 2001/02/03 16:25:43 mdw Exp $
+ * $Id: traceopt.c,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Parsing tracing options
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: traceopt.c,v $
- * Revision 1.2 2001/02/03 16:25:43 mdw
- * Various bug fixes: understand requests for help properly, and fix the
- * logic for flag letters with `bad' flags.
- *
- * Revision 1.1 1999/10/22 22:40:08 mdw
- * Separate function for parsing user trace specs.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: track.c,v 1.4 1999/05/19 20:27:11 mdw Exp $
+ * $Id: track.c,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Tracing functions for debugging
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: track.c,v $
- * Revision 1.4 1999/05/19 20:27:11 mdw
- * Change naming to match newer mLib conventions.
- *
- * Revision 1.3 1999/05/06 19:51:36 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: track.h,v 1.5 1999/12/10 23:42:04 mdw Exp $
+ * $Id: track.h,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Tracing functions for debugging
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: track.h,v $
- * Revision 1.5 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.4 1999/10/22 22:40:25 mdw
- * Change naming slightly. Still not documented, though.
- *
- * Revision 1.3 1999/05/06 19:51:36 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1.1.1 1998/06/17 23:44:42 mdw
- * Initial version of mLib
- *
- */
-
#ifndef MLIB_TRACK_H
#define MLIB_TRACK_H
/* -*-c-*-
*
- * $Id: tv.c,v 1.5 1999/05/21 22:13:12 mdw Exp $
+ * $Id: tv.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Manipulation of timeval structures
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: tv.c,v $
- * Revision 1.5 1999/05/21 22:13:12 mdw
- * Moved most of the code into exported macros. The main functions now
- * implemented using the macros.
- *
- * Revision 1.4 1999/05/17 20:37:52 mdw
- * New function `tv_addl' to add a literal to a time value. Use magical
- * `MILLION' constant in place of 1000000 for ease of reading.
- *
- * Revision 1.3 1999/05/06 19:51:36 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1 1998/11/25 23:30:01 mdw
- * New file.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <sys/time.h>
/* -*-c-*-
*
- * $Id: tv.h,v 1.6 1999/12/10 23:42:04 mdw Exp $
+ * $Id: tv.h,v 1.7 2004/04/08 01:36:13 mdw Exp $
*
* Manipulation of timeval structures
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: tv.h,v $
- * Revision 1.6 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.5 1999/05/21 22:13:12 mdw
- * Moved most of the code into exported macros. The main functions now
- * implemented using the macros.
- *
- * Revision 1.4 1999/05/17 20:37:25 mdw
- * New function `tv_addl' to add a literal to a time value.
- *
- * Revision 1.3 1999/05/06 19:51:36 mdw
- * Reformatted the LGPL notice a little bit.
- *
- * Revision 1.2 1999/05/05 18:50:31 mdw
- * Change licensing conditions to LGPL.
- *
- * Revision 1.1 1998/11/25 23:30:01 mdw
- * New file.
- *
- */
-
#ifndef MLIB_TV_H
#define MLIB_TV_H
/* -*-c-*-
*
- * $Id: unihash-mkstatic.c,v 1.1 2003/12/15 20:52:56 mdw Exp $
+ * $Id: unihash-mkstatic.c,v 1.2 2004/04/08 01:36:13 mdw Exp $
*
* Build static universal hash tables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: unihash-mkstatic.c,v $
- * Revision 1.1 2003/12/15 20:52:56 mdw
- * New program to make fixed tables for universal hashing.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: unihash.c,v 1.2 2003/12/14 14:45:30 mdw Exp $
+ * $Id: unihash.c,v 1.3 2004/04/08 01:36:13 mdw Exp $
*
* Simple and efficient universal hashing for hashtables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: unihash.c,v $
- * Revision 1.2 2003/12/14 14:45:30 mdw
- * Test universal hashing and fix bugs.
- *
- * Revision 1.1 2003/10/12 14:43:24 mdw
- * Universal hashing.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
/* -*-c-*-
*
- * $Id: unihash.h,v 1.3 2003/12/15 20:53:47 mdw Exp $
+ * $Id: unihash.h,v 1.4 2004/04/08 01:36:13 mdw Exp $
*
* Simple and efficient universal hashing for hashtables
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: unihash.h,v $
- * Revision 1.3 2003/12/15 20:53:47 mdw
- * Add global unihash table; use universal hashing instead of CRC.
- *
- * Revision 1.2 2003/12/14 14:45:30 mdw
- * Test universal hashing and fix bugs.
- *
- * Revision 1.1 2003/10/12 14:43:24 mdw
- * Universal hashing.
- *
- */
-
#ifndef MLIB_UNIHASH_H
#define MLIB_UNIHASH_H
/* -*-c-*-
*
- * $Id: url.c,v 1.4 2001/06/22 19:36:18 mdw Exp $
+ * $Id: url.c,v 1.5 2004/04/08 01:36:13 mdw Exp $
*
* Parsing and construction of url-encoded name/value pairs
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: url.c,v $
- * Revision 1.4 2001/06/22 19:36:18 mdw
- * Include @<ctype.h>@.
- *
- * Revision 1.3 2001/01/20 12:06:21 mdw
- * Be more conservative in base-64 encoding.
- *
- * Revision 1.2 1999/09/03 08:02:05 mdw
- * Make `#' a special character which needs escaping.
- *
- * Revision 1.1 1999/06/01 09:49:48 mdw
- * New files for url-encoding and decoding.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: url.h,v 1.3 2001/01/20 12:06:01 mdw Exp $
+ * $Id: url.h,v 1.4 2004/04/08 01:36:13 mdw Exp $
*
* Parsing and construction of url-encoded name/value pairs
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: url.h,v $
- * Revision 1.3 2001/01/20 12:06:01 mdw
- * Define flags with macros, to ensure unsignedness.
- *
- * Revision 1.2 1999/12/10 23:42:04 mdw
- * Change header file guard names.
- *
- * Revision 1.1 1999/06/01 09:49:48 mdw
- * New files for url-encoding and decoding.
- *
- */
-
#ifndef MLIB_URL_H
#define MLIB_URL_H