xattr-util: Add xsetxattr()

Like getxattr_malloc() but for setxattr() and friends.
This commit is contained in:
Daan De Meyer
2023-02-14 12:51:38 +01:00
parent ec96dad2f4
commit a4d2461c46
2 changed files with 76 additions and 0 deletions
+2
View File
@@ -36,3 +36,5 @@ static inline int llistxattr_malloc(const char *path, char **ret) {
static inline int flistxattr_malloc(int fd, char **ret) {
return listxattr_at_malloc(fd, NULL, AT_EMPTY_PATH, ret);
}
int xsetxattr(int fd, const char *path, const char *name, const char *value, size_t size, int flags);