On Thu, Jun 30, 2011 at 07:10:57AM +0200, Emmanuel Dreyfus wrote: > Emmanuel Dreyfus <[email protected]> wrote: > > [Linux flavor] > > - Attribute values cannot contain a NUL character > [FreeBSD flavor] > > - Attribute value cannot cannot be bigger than 255 bytes > > This is nonsense posted too early in the morning :-) The attribute value > can contain random binary data in both API. > > Attribute *names* have the constraints above in the extattr_list_file() > and listxattr() system calls. But since attribute names are passed as > NUL-terminated strings input arguments for get/set/remove operations of > both API, they cannot contain a NUL character anyway, both with FreeBSD > and Linux API. > > So here is my fixed sumary:
Thanks, that makes this much clearer! Based on your summary, I think I like the listxattr() API better. eric
