src/winsup/utils ChangeLog setfacl.c

Eric Blake eblake@redhat.com
Mon Dec 13 16:10:00 GMT 2010


On 12/11/2010 01:47 PM, corinna@cygwin.com wrote:
> CVSROOT:	/cvs/src
> Module name:	src
> Changes by:	corinna@sourceware.org	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   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20101213/fd0d2197/attachment.sig>


More information about the Cygwin-developers mailing list