* Stelian Pop <stelian@popies.net>, 1999-2000
* Stelian Pop <stelian@popies.net> - AlcĂ´ve <www.alcove.com>, 2000-2002
*
- * $Id: dump.h,v 1.39 2002/06/05 13:29:15 stelian Exp $
+ * $Id: dump.h,v 1.41 2002/12/12 11:49:35 stelian Exp $
*/
/*-
/* rdump routines */
#ifdef RDUMP
int rmthost __P((const char *host));
-int rmtopen __P((const char *tape, const char *mode));
+int rmtopen __P((const char *tape, const int mode));
void rmtclose __P((void));
int rmtread __P((char *buf, size_t count));
int rmtwrite __P((const char *buf, size_t count));
#define DIALUP "ttyd" /* prefix for dialups */
#endif
-struct fstab *fstabsearch __P((const char *key)); /* search fs_file and fs_spec */
+#include <mntent.h>
+
+struct mntent *fstabsearch __P((const char *key)); /* search fs_file and fs_spec */
#ifdef __linux__
-struct fstab *fstabsearchdir __P((const char *key, char *dir)); /* search fs_file and fs_spec */
+struct mntent *fstabsearchdir __P((const char *key, char *dir)); /* search fs_file and fs_spec */
#endif
/*
*/
struct dumpdates {
char dd_name[MAXPATHLEN+3];
- struct fstab *dd_fstab;
+ struct mntent *dd_fstab;
char dd_level;
time_t dd_ddate;
};
int dump_fs_open(const char *disk, ext2_filsys *fs);
#endif
-#ifndef __linux__
-#ifndef _PATH_UTMP
-#define _PATH_UTMP "/etc/utmp"
-#endif
-#ifndef _PATH_FSTAB
-#define _PATH_FSTAB "/etc/fstab"
-#endif
-#endif
-
#ifdef sunos
extern char *calloc();
extern char *malloc();