summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-02 14:38:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:49 -0500
commit22367ca76eaa2e84cee81fdbb005486ec857e64d (patch)
tree43aa52f522f877776c087ddfe624f48d3f8a8e3b
parente3482ffeed80c156ce3832609515e3aea4ba907f (diff)
downloadsamba-22367ca76eaa2e84cee81fdbb005486ec857e64d.tar.gz
samba-22367ca76eaa2e84cee81fdbb005486ec857e64d.tar.bz2
samba-22367ca76eaa2e84cee81fdbb005486ec857e64d.zip
r16008: make debugging easier, and use the os name in the function name
(I'll add a bsd wrapping later) metze (This used to be commit 2ce4a2da29dd18b92580014cc765c0f950fb74df)
-rw-r--r--source4/ntvfs/posix/xattr_system.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source4/ntvfs/posix/xattr_system.c b/source4/ntvfs/posix/xattr_system.c
index 81bac6caec..11d8df2933 100644
--- a/source4/ntvfs/posix/xattr_system.c
+++ b/source4/ntvfs/posix/xattr_system.c
@@ -24,36 +24,36 @@
#include "vfs_posix.h"
#if defined(HAVE_XATTR_SUPPORT) && defined(XATTR_ADDITIONAL_OPTIONS)
-static ssize_t _wrap_fgetxattr(int fd, const char *name, void *value, size_t size)
+static ssize_t _wrap_darwin_fgetxattr(int fd, const char *name, void *value, size_t size)
{
return fgetxattr(fd, name, value, size, 0, 0);
}
-static ssize_t _wrap_getxattr(const char *path, const char *name, void *value, size_t size)
+static ssize_t _wrap_darwin_getxattr(const char *path, const char *name, void *value, size_t size)
{
return getxattr(path, name, value, size, 0, 0);
}
-static int _wrap_fsetxattr(int fd, const char *name, void *value, size_t size, int flags)
+static int _wrap_darwin_fsetxattr(int fd, const char *name, void *value, size_t size, int flags)
{
return fsetxattr(fd, name, value, size, 0, flags);
}
-static int _wrap_setxattr(const char *path, const char *name, void *value, size_t size, int flags)
+static int _wrap_darwin_setxattr(const char *path, const char *name, void *value, size_t size, int flags)
{
return setxattr(path, name, value, size, 0, flags);
}
-static int _wrap_fremovexattr(int fd, const char *name)
+static int _wrap_darwin_fremovexattr(int fd, const char *name)
{
return fremovexattr(fd, name, 0);
}
-static int _wrap_removexattr(const char *path, const char *name)
+static int _wrap_darwin_removexattr(const char *path, const char *name)
{
return removexattr(path, name, 0);
}
-#define fgetxattr _wrap_fgetxattr
-#define getxattr _wrap_getxattr
-#define fsetxattr _wrap_fsetxattr
-#define setxattr _wrap_setxattr
-#define fremovexattr _wrap_fremovexattr
-#define removexattr _wrap_removexattr
+#define fgetxattr _wrap_darwin_fgetxattr
+#define getxattr _wrap_darwin_getxattr
+#define fsetxattr _wrap_darwin_fsetxattr
+#define setxattr _wrap_darwin_setxattr
+#define fremovexattr _wrap_darwin_fremovexattr
+#define removexattr _wrap_darwin_removexattr
#elif !defined(HAVE_XATTR_SUPPORT)
static ssize_t _none_fgetxattr(int fd, const char *name, void *value, size_t size)
{