- cu_mount_t *last = NULL;
-
- /* see lib/mountlist.c of coreutils for all (ugly) details! */
-
-/*
- there are two implementations of getmntent():
- * one argument getmntent:
- FILE *setmntent(const char *filename, const char *type);
- struct mntent *getmntent(FILE *fp);
- int endmntent(FILE *fp);
- * two argument getmntent:
- FILE *fopen(const char *path, const char *mode);
- int getmntent(FILE *fp, struct mnttab *mnt);
- int fclose(FILE *fp);
- and a third (linux/gnu style) version called getmntent_r, which is not used
- here (enough trouble with the two versions above).
-*/
-#if HAVE_GETMNTENT
-# if HAVE_GETMNTENT1
-# define setmntent setmntent
-# define endmntent endmntent
-# else
-# if HAVE_GETMNTENT2
-# define setmntent fopen
-# define endmntent fclose
-# else
-# error HAVE_GETMNTENT defined, but neither HAVE_GETMNTENT1 nor HAVE_GETMNTENT2
-# endif /* HAVE_GETMNTENT2 */
-# endif /* HAVE_GETMNTENT1 */
-#endif /* HAVE_GETMNTENT */