diff options
author | pk33 <pk33@pk33.space> | 2024-11-03 01:39:28 +0100 |
---|---|---|
committer | pk33 <pk33@pk33.space> | 2024-11-03 01:39:28 +0100 |
commit | ee7cd3e6b622a8c40236ac26270e369bc28af007 (patch) | |
tree | d5473064793f559d6677de193b4c827cf6623d2e /musl/mntent.h | |
parent | dd5240ff7a87e85bca15b294236220ac0576055f (diff) | |
download | engine33-ee7cd3e6b622a8c40236ac26270e369bc28af007.tar.gz |
modesetting tweaks
Diffstat (limited to 'musl/mntent.h')
-rw-r--r-- | musl/mntent.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/musl/mntent.h b/musl/mntent.h new file mode 100644 index 0000000..3492a1d --- /dev/null +++ b/musl/mntent.h @@ -0,0 +1,43 @@ +#ifndef _MNTENT_H +#define _MNTENT_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define __NEED_FILE +#include <bits/alltypes.h> + +#define MOUNTED "/etc/mtab" + +#define MNTTYPE_IGNORE "ignore" +#define MNTTYPE_NFS "nfs" +#define MNTTYPE_SWAP "swap" +#define MNTOPT_DEFAULTS "defaults" +#define MNTOPT_RO "ro" +#define MNTOPT_RW "rw" +#define MNTOPT_SUID "suid" +#define MNTOPT_NOSUID "nosuid" +#define MNTOPT_NOAUTO "noauto" + +struct mntent { + char *mnt_fsname; + char *mnt_dir; + char *mnt_type; + char *mnt_opts; + int mnt_freq; + int mnt_passno; +}; + +FILE *setmntent(const char *, const char *); +int endmntent(FILE *); +struct mntent *getmntent(FILE *); +struct mntent *getmntent_r(FILE *, struct mntent *, char *, int); +int addmntent(FILE *, const struct mntent *); +char *hasmntopt(const struct mntent *, const char *); + +#ifdef __cplusplus +} +#endif + +#endif |