From c9ea91d41ef0fb1975e8340a010e777aee84b089 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 17 Oct 2018 13:18:25 +0200 Subject: lib/path: allow to close dirfd Signed-off-by: Karel Zak --- include/path.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/path.h b/include/path.h index 7ab9779a5..b34aa366e 100644 --- a/include/path.h +++ b/include/path.h @@ -40,6 +40,8 @@ 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); +void ul_path_close_dirfd(struct path_cxt *pc); +int ul_path_isopen_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))); -- cgit v1.2.3-55-g7522