diff options
author | Karel Zak | 2018-10-17 13:18:25 +0200 |
---|---|---|
committer | Karel Zak | 2018-12-07 12:32:58 +0100 |
commit | c9ea91d41ef0fb1975e8340a010e777aee84b089 (patch) | |
tree | ead678f7c0fb78246774204cc807726a26571e70 /include | |
parent | lsblk: rename set_device() (diff) | |
download | kernel-qcow2-util-linux-c9ea91d41ef0fb1975e8340a010e777aee84b089.tar.gz kernel-qcow2-util-linux-c9ea91d41ef0fb1975e8340a010e777aee84b089.tar.xz kernel-qcow2-util-linux-c9ea91d41ef0fb1975e8340a010e777aee84b089.zip |
lib/path: allow to close dirfd
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/path.h | 2 |
1 files changed, 2 insertions, 0 deletions
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))); |