12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef _MNTENT_H
- #define _MNTENT_H 1
- #include <features.h>
- #define __need_FILE
- #include <stdio.h>
- #include <paths.h>
- #define MNTTAB _PATH_MNTTAB
- #define MOUNTED _PATH_MOUNTED
- #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"
- __BEGIN_DECLS
- struct mntent
- {
- char *mnt_fsname;
- char *mnt_dir;
- char *mnt_type;
- char *mnt_opts;
- int mnt_freq;
- int mnt_passno;
- };
- extern FILE *setmntent (const char *__file, const char *__mode) __THROW;
- extern struct mntent *getmntent (FILE *__stream) __THROW;
- #ifdef __USE_MISC
- extern struct mntent *getmntent_r (FILE *__restrict __stream,
- struct mntent *__restrict __result,
- char *__restrict __buffer,
- int __bufsize) __THROW;
- #endif
- extern int addmntent (FILE *__restrict __stream,
- const struct mntent *__restrict __mnt) __THROW;
- extern int endmntent (FILE *__stream) __THROW;
- extern char *hasmntopt (const struct mntent *__mnt,
- const char *__opt) __THROW;
- __END_DECLS
- #endif
|