diff options
author | Simon McVittie <smcv@collabora.com> | 2021-06-23 18:56:38 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-06-23 19:01:57 +0100 |
commit | 6ceba45306fdbb0fb9a11dc557e8412edf45c83c (patch) | |
tree | b26889ca45d39c88ce04b401d810bcaf0d63ecb7 /bind-mount.h | |
parent | 7f38ab6cf1752700bea6cf1b2f056f74ee4960ae (diff) | |
download | bubblewrap-6ceba45306fdbb0fb9a11dc557e8412edf45c83c.tar.gz |
bind-mount: Factor out bind_mount_result_to_string()
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'bind-mount.h')
-rw-r--r-- | bind-mount.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bind-mount.h b/bind-mount.h index 6b23ae3..2ec9031 100644 --- a/bind-mount.h +++ b/bind-mount.h @@ -18,6 +18,8 @@ #pragma once +#include "utils.h" + typedef enum { BIND_READONLY = (1 << 0), BIND_DEVICES = (1 << 2), @@ -41,6 +43,9 @@ bind_mount_result bind_mount (int proc_fd, const char *dest, bind_option_t options); +const char *bind_mount_result_to_string (bind_mount_result res, + bool *want_errno); + void die_with_bind_result (bind_mount_result res, int saved_errno, const char *format, |