version 1.3, 2014/07/05 07:58:41 |
version 1.4, 2014/07/05 10:21:24 |
|
|
*/ |
*/ |
|
|
/* |
/* |
* Mount information |
|
*/ |
|
#if FSI_TYPE == FSI_GETMNT |
|
# include <sys/types.h> |
|
# include <sys/param.h> |
|
# include <sys/mount.h> |
|
# define MOUNTED_FILE "<none>" |
|
#endif |
|
|
|
#if FSI_TYPE == FSI_GETFSSTAT |
|
# include <sys/types.h> |
|
# include <sys/mount.h> |
|
# define MOUNTED_FILE "<none>" |
|
#endif |
|
|
|
#if FSI_TYPE == FSI_MNTCTL |
|
# include <sys/mntctl.h> |
|
# define MOUNTED_FILE "<none>" |
|
#endif |
|
|
|
#if FSI_TYPE == FSI_GETMNTENT |
|
# include <mntent.h> |
|
# define MOUNTED_FILE MOUNTED |
|
#endif |
|
|
|
#if FSI_TYPE == FSI_GETMNTENT2 |
|
#if defined(MNTTAB_H) |
|
# include MNTTAB_H |
|
#endif /* MNTTAB_H */ |
|
#if defined(MNTENT_H) |
|
# include MNTENT_H |
|
#endif /* MNTENT_H */ |
|
# define MOUNTED_FILE MNTTAB |
|
#endif /* FSI_GETMNTENT2 */ |
|
|
|
#if !defined(MOUNTED_FILE) && defined(MNT_MNTTAB) /* HPUX */ |
|
# define MOUNTED_FILE MNT_MNTTAB |
|
#endif /* MNT_MNTTAB */ |
|
|
|
/* |
|
* NCR OS defines bcopy and bzero |
|
*/ |
|
#if defined(NCR) |
|
#undef bcopy |
|
#undef bzero |
|
#endif /* NCR */ |
|
|
|
/* |
|
* Mount Entry definetions |
* Mount Entry definetions |
*/ |
*/ |
#ifndef METYPE_OTHER |
#ifndef METYPE_OTHER |
|
|
/* |
/* |
* Declarations |
* Declarations |
*/ |
*/ |
FILE *setmountent(const char *, const char *); |
int setmountent(void); |
mntent_t *getmountent(FILE *); |
mntent_t *getmountent(void); |
mntent_t *newmountent(const mntent_t *); |
mntent_t *newmountent(const mntent_t *); |
void endmountent(FILE *); |
void endmountent(void); |
|
|
#endif /* __filesys_h__ */ |
#endif /* __filesys_h__ */ |