Re: test-memchr failure on rawhide

2009-05-09 Thread Ben Pfaff
Bruno Haible writes: > Do you mean to say that none of the functions > memchr > memcmp > memcpy > memmove > memset > wmemchr > wmemcmp > wmemcpy > wmemmove > wmemset > may be called with arguments ptr = NULL and n = 0 ? Yes. C99 7.2.21p2 says: Where an argument declare

Re: test-memchr failure on rawhide

2009-05-09 Thread Andreas Schwab
Bruno Haible writes: > Andreas Schwab wrote: >> > What is "the object"? >> >> See section 3.14 in the C standard. >> >> region of data storage in the execution environment, the contents of >> which can represent values > > And in the context of memchr's return value: The context is irr

Re: test-memchr failure on rawhide

2009-05-09 Thread Bruno Haible
Andreas Schwab wrote: > > What is "the object"? > > See section 3.14 in the C standard. > > region of data storage in the execution environment, the contents of > which can represent values And in the context of memchr's return value: "The memchr function returns a pointer to the loca

Re: test-memchr failure on rawhide

2009-05-09 Thread Andreas Schwab
Bruno Haible writes: > What is "the object"? See section 3.14 in the C standard. region of data storage in the execution environment, the contents of which can represent values Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: [PATCH] Add ability to print ACL's from ls

2009-05-09 Thread David Bartley
On Sat, May 9, 2009 at 3:36 AM, Bruno Haible wrote: > > Unfortunately, having GNU 'ls' (and maybe later GNU 'chmod') use the > platform's native syntax for ACLs does not allow the user to use the > same commands on different platforms, and does not allow for platform > independent scripts. I cons

Re: [PATCH] Add ability to print ACL's from ls

2009-05-09 Thread Bruno Haible
Hello David, > The following patches add support for printing ACL's via 'ls -e/-E'. > This is supported on platforms that have some sort of acl_to_text > function, which is most of the platforms that the acl module supports. Unfortunately, having GNU 'ls' (and maybe later GNU 'chmod') use the pla

Re: test-memchr failure on rawhide

2009-05-09 Thread Bruno Haible
Andreas Schwab wrote: > s/worked fine earlier/invoked undefined behviour/ In your interpretation of the C99 standard: can you please tell, regarding this sentence in section 7.21.5.1, and assuming a call memchr(ptr,c,n) with ptr != NULL and n >= 0:   "The memchr function returns a pointer to the

Re: test-memchr failure on rawhide

2009-05-09 Thread Andreas Schwab
Bruno Haible writes: > Does memchr(ptr,c,0) for ptr != NULL now access ptr[0] or not? The as-if rule allows everything as long as a strictly compliant program cannot tell the difference. > In both cases the memchr implementation is deviating from traditional > behaviour and provoking crashes fo

[PATCH] Add ability to print ACL's from ls

2009-05-09 Thread David Bartley
The following patches add support for printing ACL's via 'ls -e/-E'. This is supported on platforms that have some sort of acl_to_text function, which is most of the platforms that the acl module supports. I tested this on Linux, OpenSolaris, and FreeBSD. -- David From 2b81cf5a5eb32c5e500c892fd11