[Patch] strnlen(3)

Kostik Belousov kostikbel at gmail.com
Fri Dec 12 02:10:12 PST 2008


On Fri, Dec 12, 2008 at 12:32:45AM +0100, Stefan Farfeleder wrote:
> On Thu, Dec 11, 2008 at 09:57:41PM +0200, Kostik Belousov wrote:
> > On Thu, Dec 11, 2008 at 08:04:36PM +0100, Ed Schouten wrote:
> > > Hello all,
> > > 
> > > I've attached a patch, that adds strnlen(3) to libc. It also moves
> > > strndup(3) out of __BSD_VISIBLE. I'll see if it survives `make universe'
> > > and commit it soonish. Any comments?
> > strndup shall stay under __BSD_VISIBLE, and strnlen declaration shall
> > go unto this define too. Not doing this will pollute namespace
> > for the POSIX revisions we are (partially) trying to support.
> 
> It should propably be inside #if __POSIX_VISIBLE >= 2008xx for a
> suitable value of 2008xx for P1003.1 Issue 7.

Exactly. Since the 2008xx infrastructure work is not done yet, we shall
keep it in BSD namespace (that is enabled by default).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20081212/097bf0e9/attachment.pgp


More information about the freebsd-arch mailing list