diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2011-08-12 16:23:23 +0200 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-11-24 00:22:58 -0800 |
commit | ad2d5765d955899f56fec5c05ba9e0e55ccac395 (patch) | |
tree | d9316176e27d4dfd44e858def8ca90e1196783dc /libglusterfs/src | |
parent | 86ed5d68596e577b4d923750a619a6921f2cfe18 (diff) |
Let NetBSD use its recently added Linux xattr API
Change-Id: Ibd365e8d83c6faf631df7cb99ec62440496fcbdf
BUG: 2923
Reviewed-on: http://review.gluster.com/230
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/syscall.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c index 05afa24f925..5819218f55f 100644 --- a/libglusterfs/src/syscall.c +++ b/libglusterfs/src/syscall.c @@ -268,7 +268,7 @@ sys_lsetxattr (const char *path, const char *name, const void *value, size_t size, int flags) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return lsetxattr (path, name, value, size, flags); #endif @@ -293,7 +293,7 @@ ssize_t sys_llistxattr (const char *path, char *list, size_t size) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return llistxattr (path, list, size); #endif @@ -316,7 +316,7 @@ ssize_t sys_lgetxattr (const char *path, const char *name, void *value, size_t size) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return lgetxattr (path, name, value, size); #endif @@ -340,7 +340,7 @@ ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return fgetxattr (filedes, name, value, size); #endif @@ -365,7 +365,7 @@ sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return fsetxattr (filedes, name, value, size, flags); #endif @@ -389,7 +389,7 @@ ssize_t sys_flistxattr (int filedes, char *list, size_t size) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return flistxattr (filedes, list, size); #endif @@ -412,7 +412,7 @@ int sys_lremovexattr (const char *path, const char *name) { -#ifdef GF_LINUX_HOST_OS +#if defined(GF_LINUX_HOST_OS) || defined(__NetBSD__) return lremovexattr (path, name); #endif |