From owner-freebsd-arch@FreeBSD.ORG Wed May 2 13:45:52 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0268F106564A for ; Wed, 2 May 2012 13:45:51 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9ECCE8FC08; Wed, 2 May 2012 13:45:51 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q42Djp6V067919; Wed, 2 May 2012 13:45:51 GMT (envelope-from bapt@freebsd.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q42DjpoU067915; Wed, 2 May 2012 13:45:51 GMT (envelope-from bapt@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@freebsd.org using -f Date: Wed, 2 May 2012 15:45:47 +0200 From: Baptiste Daroussin To: Luigi Rizzo Message-ID: <20120502134546.GM31034@azathoth.lan> References: <20120502114115.GG31034@azathoth.lan> <20120502123149.GI31034@azathoth.lan> <20120502140235.GA91732@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tDYGg60iReQ7u8wj" Content-Disposition: inline In-Reply-To: <20120502140235.GA91732@onelab2.iet.unipi.it> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arch@freebsd.org Subject: Re: Switching /etc/*.db from bdb to tinycdb X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2012 13:45:52 -0000 --tDYGg60iReQ7u8wj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 02, 2012 at 04:02:35PM +0200, Luigi Rizzo wrote: > On Wed, May 02, 2012 at 02:31:49PM +0200, Baptiste Daroussin wrote: > ... > > > > Why importing to libc? to allow all the get*ent to parse the /etc/*= =2Edb > > > > files > > > > > > >=20 > > > just curious, where do we have the bdb 1.85 routines now ? > > > Are they all in libc, or split between libc and libutil ? > >=20 > > All in libc >=20 > ok then it makes sense to preserve the structure and have > everything in libc as des suggested. Just a curiosity again, > any estimate of code size ? >=20 That is pretty small: 545 cdb.c 76 cdb_find.c 81 cdb_findnext.c 19 cdb_hash.c 113 cdb_init.c 184 cdb_make.c 50 cdb_make_add.c 204 cdb_make_put.c 100 cdb_seek.c 29 cdb_seq.c 18 cdb_unpack.c 126 cdb.h 41 cdb_int.h 1586 total regards, Bapt --tDYGg60iReQ7u8wj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+hOooACgkQ8kTtMUmk6EwmMACfa+2OkTVU/F+pdG2KLFGzLzVk AW8AnjtkB2ycFQDNMeRcIHw3sql7j9Gu =1TND -----END PGP SIGNATURE----- --tDYGg60iReQ7u8wj--