summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2018-05-17 13:58:30 +0200
committerKarel Zak2018-06-21 13:07:46 +0200
commite74e5401e11dde927042fa00a6db02d0381e0e0c (patch)
tree7d3898b3ffebad338ce8c78211c6c984a2e43079 /include
parentzramctl: use new ul_path_* API (diff)
downloadkernel-qcow2-util-linux-e74e5401e11dde927042fa00a6db02d0381e0e0c.tar.gz
kernel-qcow2-util-linux-e74e5401e11dde927042fa00a6db02d0381e0e0c.tar.xz
kernel-qcow2-util-linux-e74e5401e11dde927042fa00a6db02d0381e0e0c.zip
lib/path: add ul_path_get_abspath()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/path.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h
index 8b7d568e7..ebdb58d05 100644
--- a/include/path.h
+++ b/include/path.h
@@ -39,6 +39,9 @@ void *ul_path_get_dialect(struct path_cxt *pc);
int ul_path_set_enoent_redirect(struct path_cxt *pc, int (*func)(struct path_cxt *, const char *, int *));
int ul_path_get_dirfd(struct path_cxt *pc);
+char *ul_path_get_abspath(struct path_cxt *pc, char *buf, size_t bufsz, const char *path, ...)
+ __attribute__ ((__format__ (__printf__, 4, 5)));
+
int ul_path_access(struct path_cxt *pc, int mode, const char *path);
int ul_path_accessf(struct path_cxt *pc, int mode, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));