mount.h (346B) download
1#pragma once
2
3#include <stdbool.h>
4
5typedef struct mount_option {
6 const char* name;
7 int flags;
8 bool invert;
9} mount_option_t;
10
11/**
12 * mount options (taken from util-linux)
13 */
14extern const mount_option_t mount_options[];
15
16/**
17 * parse mount flags to C-flags and remaining options
18 */
19int mount_flags(const char* options, const char** dest);