[Patch] strnlen(3)

Stefan Farfeleder stefan at fafoe.narf.at
Thu Dec 11 15:48:09 PST 2008


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.


More information about the freebsd-arch mailing list