src/winsup/utils ChangeLog setfacl.c

Eric Blake
Mon Dec 13 16:10:00 GMT 2010

On 12/11/2010 01:47 PM, wrote:
> CVSROOT:	/cvs/src
> Module name:	src
> Changes by:	2010-12-11 20:47:01
> Modified files:
> 	winsup/utils   : ChangeLog setfacl.c 
> Log message:
> 	* setfacl.c (strchrnul): New function.

Should we implement strchrnul in newlib instead?  Your implementation
works, but the naive byte-wise loop is almost an order of magnitude
slower than searching a word at a time using some of the same tricks as
strlen().  And several GNU programs, such as tar, would use native
strchrnul() if it existed (right now, they get it from gnulib).

Eric Blake    +1-801-349-2682
Libvirt virtualization library

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Cygwin-developers mailing list