mlibc/options/linux/include/mntent.h
Dennisbonke 9e34112ecf abis/mlibc: matched struct in6_addr to musl and provide loopback initialization macro.
options/linux: Fixed indentation and instanciate in6addr_loopback

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
2020-04-30 21:01:37 +02:00

47 lines
971 B
C

#ifndef _MNTENT_H
#define _MNTENT_H
#include <stdio.h>
// TODO: Refer to _PATH_MOUNTED
#define MOUNTED "/etc/mtab"
/* Generic mount options */
#define MNTOPT_DEFAULTS "defaults" /* Use all default options. */
#define MNTOPT_RO "ro" /* Read only. */
#define MNTOPT_RW "rw" /* Read/write. */
#define MNTOPT_SUID "suid" /* Set uid allowed. */
#define MNTOPT_NOSUID "nosuid" /* No set uid allowed. */
#define MNTOPT_NOAUTO "noauto" /* Do not auto mount. */
#ifdef __cplusplus
extern "C" {
#endif
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 *);
struct mntent *getmntent(FILE *);
int addmntent(FILE *, const struct mntent *);
int endmntent(FILE *);
char *hasmntopt(const struct mntent *, const char *);
struct mntent *getmntent_r(FILE *, struct mntent *, char *, int);
#ifdef __cplusplus
}
#endif
#endif // _MNTENT_H