From e74e5401e11dde927042fa00a6db02d0381e0e0c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 17 May 2018 13:58:30 +0200 Subject: lib/path: add ul_path_get_abspath() Signed-off-by: Karel Zak --- include/path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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))); -- cgit v1.2.3-55-g7522