From owner-freebsd-current Fri Dec 11 12:10:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA21297 for freebsd-current-outgoing; Fri, 11 Dec 1998 12:10:52 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA21290; Fri, 11 Dec 1998 12:10:49 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA19600; Fri, 11 Dec 1998 12:08:10 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma019596; Fri, 11 Dec 98 12:08:02 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA28016; Fri, 11 Dec 1998 12:08:02 -0800 (PST) From: Archie Cobbs Message-Id: <199812112008.MAA28016@bubba.whistle.com> Subject: Re: mformat in free(): warning: junk pointer, too high to make sense. In-Reply-To: <2490.913366276@verdi.nethelp.no> from "sthaug@nethelp.no" at "Dec 11, 98 09:51:16 am" To: sthaug@nethelp.no Date: Fri, 11 Dec 1998 12:08:02 -0800 (PST) Cc: jkh@zippy.cdrom.com, eivind@yes.no, vallo@matti.ee, current@FreeBSD.ORG, dg@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-MIME-Autoconverted: from 8bit to quoted-printable by bubba.whistle.com id MAA28016 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id MAA21291 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sthaug@nethelp.no writes: > > Well, this brings up an unrelated question. I've written a little > > library that comes in very handy in situations like this (I have > > heard there are similar things out there but this was a custom job). > > This would be good to have in the system. Have you compared your lib > with Paul Vixie's eventlib, part of BIND 8.1.x? The man page is in > src/lib/isc/eventlib.mdoc in the 8.1.2 source. A small part is > included below. ... > DESCRIPTION > This library provides multiple outstanding asynchronous timers and I/O to > a cooperating application. The model is similar to that of the X Toolk­ > it, in that events are registered with the library and the application > spends most of its time in the evMainLoop() function. If an application > already has a main loop, it can safely register events with this library > as long as it periodically calls the evGetNext() and evDispatch() func­ > tions. (Note that evGetNext() has both polling and blocking modes.) Looks like the same idea but much more complete (and probably faster, better tested, etc..) I'd love to break this out into it's own library in src/lib. I think lots of people would find it useful. What kind of backlash could I expect? :-) The other libraries look interesting too: "heap", "tree", "logging", etc. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message