提交 7650390d 编写于 作者: R Rich Felker

add missing xattr functions

not sure why these were originally omitted..
上级 0d4d1a96
......@@ -20,6 +20,9 @@ ssize_t flistxattr(int filedes, char *, size_t);
int setxattr(const char *, const char *, const void *, size_t, int);
int lsetxattr(const char *, const char *, const void *, size_t, int);
int fsetxattr(int, const char *, const void *, size_t, int);
int removexattr(const char *, const char *);
int lremovexattr(const char *, const char *);
int fremovexattr(int, const char *);
#ifdef __cplusplus
}
......
......@@ -45,3 +45,18 @@ int fsetxattr(int filedes, const char *name, const void *value, size_t size, int
{
return syscall(SYS_fsetxattr, filedes, name, value, size, flags);
}
int removexattr(const char *path, const char *name)
{
return syscall(SYS_removexattr, path, name);
}
int lremovexattr(const char *path, const char *name)
{
return syscall(SYS_lremovexattr, path, name);
}
int fremovexattr(int fd, const char *name)
{
return syscall(SYS_fremovexattr, fd, name);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册