00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef COMMON_AC_MNTENT_H
00021 #define COMMON_AC_MNTENT_H
00022
00023 #include <common/config.h>
00024 #include <common/ac/stdio.h>
00025
00026 #if HAVE_MNTENT_H
00027
00028 #include <mntent.h>
00029
00030 #ifndef MOUNTED
00031 # define MOUNTED "/etc/mtab"
00032 #endif
00033
00034 #else // !HAVE_MNTENT_H
00035
00036 #include <common/main.h>
00037 #define MOUNTED "/dev/null"
00038
00039 struct mntent
00040 {
00041 char *mnt_dir;
00042 };
00043
00044
00045 FILE *setmntent(const char *, const char *);
00046 struct mntent *getmntent(FILE *);
00047 int endmntent(FILE *);
00048
00049 #endif // !HAVE_MNTENT_H
00050
00051 #endif // COMMON_AC_MNTENT_H