[Patch] strnlen(3)

Kostik Belousov kostikbel at gmail.com
Thu Dec 11 11:57:47 PST 2008


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.

I think that style recommends to put empty statements constituting
loop body on the separate line, properly indented.
-------------- 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/20081211/ae5ac64e/attachment.pgp


More information about the freebsd-arch mailing list