From owner-svn-src-all@FreeBSD.ORG Mon Dec 7 12:14:38 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F8B106566B; Mon, 7 Dec 2009 12:14:38 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 452358FC18; Mon, 7 Dec 2009 12:14:38 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id BB50D730DA; Mon, 7 Dec 2009 13:22:56 +0100 (CET) Date: Mon, 7 Dec 2009 13:22:56 +0100 From: Luigi Rizzo To: Poul-Henning Kamp Message-ID: <20091207122256.GC64431@onelab2.iet.unipi.it> References: <20091207105343.GA62012@onelab2.iet.unipi.it> <42026.1260183338@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42026.1260183338@critter.freebsd.dk> User-Agent: Mutt/1.4.2.3i Cc: Ed Schouten , src-committers@freebsd.org, Hajimu UMEMOTO , svn-src-all@freebsd.org, svn-src-head@freebsd.org, Dag-Erling Sm??rgrav Subject: Re: the need for safe dynamic string libraries (was Re: svn commit: r200157 - head/bin/date) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 12:14:38 -0000 On Mon, Dec 07, 2009 at 10:55:38AM +0000, Poul-Henning Kamp wrote: > In message <20091207105343.GA62012@onelab2.iet.unipi.it>, Luigi Rizzo writes: > > >One way to promote this is to put the code in libc so even lazy > >people won't need to remember to pass linker flags when using the library. > > I don't think sbuf's belong in libc, unless we can persude POSIX to > adopt them. right, then some other commonly used but not locked-by-standards place. libutil? libbsdstuffnotstandardizedbyposix ? Again my point (perhaps lost in the initial thread) was that the number of one-file libraries used in our base code is increasing: libsbuf, libjail, libbsdxml... to me, individual files are library members, there is no need to dedicate an entire library to a library member cheers luigi