summaryrefslogtreecommitdiff
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@gmail.com>2015-07-28 02:40:50 +0900
committerWaLyong Cho <walyong.cho@samsung.com>2015-08-04 21:09:48 +0900
commit7b9c9ab810eb8746cece22de1dfec375caf4cd13 (patch)
treed7a9740b2ae42ee9e7ff3b202460a42b88796480 /src/basic/util.h
parent13925e4ce87415d71598b81a71639b3032c0b0d3 (diff)
util: add getxattr helper apis
To get xattr of given path or fd on newly allocated buffer, add new helper api getxattr_malloc() and fgetxattr_malloc().
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index 88c44273d4..0a0fba9012 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -919,3 +919,6 @@ int parse_mode(const char *s, mode_t *ret);
int mount_move_root(const char *path);
int reset_uid_gid(void);
+
+int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
+int fgetxattr_malloc(int fd, const char *name, char **value);