File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / rsync / lib / sysxattrs.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 17 15:09:30 2012 UTC (12 years, 4 months ago) by misho
Branches: rsync, MAIN
CVS tags: v3_1_2p5, rsync3_0_9p0, RSYNC3_1_0, RSYNC3_0_9, HEAD
rsync

    1: #ifdef SUPPORT_XATTRS
    2: 
    3: #if defined HAVE_ATTR_XATTR_H
    4: #include <attr/xattr.h>
    5: #elif defined HAVE_SYS_XATTR_H
    6: #include <sys/xattr.h>
    7: #elif defined HAVE_SYS_EXTATTR_H
    8: #include <sys/extattr.h>
    9: #endif
   10: 
   11: /* Linux 2.4 does not define this as a distinct errno value: */
   12: #ifndef ENOATTR
   13: #define ENOATTR ENODATA
   14: #endif
   15: 
   16: ssize_t sys_lgetxattr(const char *path, const char *name, void *value, size_t size);
   17: ssize_t sys_fgetxattr(int filedes, const char *name, void *value, size_t size);
   18: int sys_lsetxattr(const char *path, const char *name, const void *value, size_t size);
   19: int sys_lremovexattr(const char *path, const char *name);
   20: ssize_t sys_llistxattr(const char *path, char *list, size_t size);
   21: 
   22: #else
   23: 
   24: /* No xattrs available */
   25: 
   26: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>