1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #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
|