[Box Backup-dev] First errors on Darwin

Martin Ebourne boxbackup-dev@fluffy.co.uk
Sun, 18 Dec 2005 17:43:55 +0000


On Sun, 2005-12-18 at 13:09 +0000, Ben Summers wrote:
> So llistxattr is just listxattr with XATTR_NOFOLLOW set in the  
> options under Darwin. Learn something new every day.

Ah, that makes sense. Didn't spot the difference in signature before.

> ssize_t listxattr(const char *path, char *namebuf, size_t size,
> int options);

Linux:
       ssize_t listxattr (const char *path,
                            char *list, size_t size);

So options is new.

> Can I check for XATTR_NOFOLLOW being defined in a similar way?

There are several ways. You can try this for starters:

AC_CHECK_DECLS([XATTR_NOFOLLOW],,, [[#include <sys/xattr.h>]])

Again check the config.h for the HAVE_ define.

Cheers,

Martin.