From owner-svn-src-all@FreeBSD.ORG Fri Sep 24 08:30:28 2010 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 15724106566B; Fri, 24 Sep 2010 08:30:28 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.freebsd.org (Postfix) with ESMTP id 86D048FC0A; Fri, 24 Sep 2010 08:30:27 +0000 (UTC) Received: from c122-107-116-249.carlnfd1.nsw.optusnet.com.au (c122-107-116-249.carlnfd1.nsw.optusnet.com.au [122.107.116.249]) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o8O8UNJV022578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Sep 2010 18:30:24 +1000 Date: Fri, 24 Sep 2010 18:30:23 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Rui Paulo In-Reply-To: <3CC9503B-35BA-4637-8909-CBC6674ACDDA@freebsd.org> Message-ID: <20100924182633.I715@delplex.bde.org> References: <201009221800.o8MI0Ze3038214@svn.freebsd.org> <20100923070247.L716@delplex.bde.org> <3CC9503B-35BA-4637-8909-CBC6674ACDDA@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-stable@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-stable-8@FreeBSD.org, Bruce Evans Subject: Re: svn commit: r213002 - in stable/8: include lib/libc/gen 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: Fri, 24 Sep 2010 08:30:28 -0000 On Fri, 24 Sep 2010, Rui Paulo wrote: > On 22 Sep 2010, at 22:08, Bruce Evans wrote: > >> On Wed, 22 Sep 2010, Rui Paulo wrote: >>> Note about semantics: while this interface is not POSIXy, there's >>> another major platform that uses it (Android) and the semantics between >>> the two platforms are pretty much the same. >> >> It is also not non-POSIX... >> >>> Modified: stable/8/include/libgen.h >>> ============================================================================== >>> --- stable/8/include/libgen.h Wed Sep 22 16:54:22 2010 (r213001) >>> +++ stable/8/include/libgen.h Wed Sep 22 18:00:34 2010 (r213002) >>> @@ -36,6 +36,7 @@ >>> __BEGIN_DECLS >>> >>> char *basename(const char *); >>> +char *basename_r(const char *, char *); >>> char *dirname(const char *); >>> #if 0 >>> char *regcmp(const char *, ...); >>> >> >> ...since it is declared in the POSIX namespace. > > I don't know of a better place to declare it. Er, inside an ifdef for a non-POSIX namespace of course. See almost any header that has more than 3 active declarations in it. Bruce