mirror of
git://git.musl-libc.org/musl
synced 2025-01-08 07:30:32 +00:00
207460d097
based on patch by orc and Isaac Dunham, with some fixes.
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
#include <sys/xattr.h>
|
|
#include "syscall.h"
|
|
|
|
ssize_t getxattr(const char *path, const char *name, void *value, size_t size)
|
|
{
|
|
return syscall(SYS_getxattr, path, name, value, size);
|
|
}
|
|
|
|
ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
|
|
{
|
|
return syscall(SYS_lgetxattr, path, name, value, size);
|
|
}
|
|
|
|
ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size)
|
|
{
|
|
return syscall(SYS_fgetxattr, filedes, name, value, size);
|
|
}
|
|
|
|
ssize_t listxattr(const char *path, char *list, size_t size)
|
|
{
|
|
return syscall(SYS_listxattr, path, list, size);
|
|
}
|
|
|
|
ssize_t llistxattr(const char *path, char *list, size_t size)
|
|
{
|
|
return syscall(SYS_llistxattr, path, list, size);
|
|
}
|
|
|
|
ssize_t flistxattr(int filedes, char *list, size_t size)
|
|
{
|
|
return syscall(SYS_flistxattr, filedes, list, size);
|
|
}
|
|
|
|
int setxattr(const char *path, const char *name, const void *value, size_t size, int flags)
|
|
{
|
|
return syscall(SYS_setxattr, path, name, value, size, flags);
|
|
}
|
|
|
|
int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags)
|
|
{
|
|
return syscall(SYS_lsetxattr, path, name, value, size, flags);
|
|
}
|
|
|
|
int fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags)
|
|
{
|
|
return syscall(SYS_fsetxattr, filedes, name, value, size, flags);
|
|
}
|