From 0d8ca19a1a9dbac6c40493a4b8b1a1536fd0006a Mon Sep 17 00:00:00 2001 From: ksherlock Date: Mon, 24 May 2010 22:02:31 +0000 Subject: [PATCH] git-svn-id: https://profuse.googlecode.com/svn/branches/v2@275 aa027e90-d47c-11dd-86d7-074df07e0730 --- xattr.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xattr.cpp b/xattr.cpp index f180c46..89a0b3a 100644 --- a/xattr.cpp +++ b/xattr.cpp @@ -31,6 +31,11 @@ inline ssize_t listxattr(const char *path, char *namebuf, size_t size) return listxattr(path, namebuf, size, XATTR_NOFOLLOW); } +// apple has additional parameter for offset . +inline int setxattr(const char *path, const char *name, void *value, size_t size, int flags) +{ + return setxattr(path, name, value, size, 0, flags); +} #endif void hexdump(const uint8_t *data, ssize_t size)