* Ported to Linux's Second Extended File System as part of the
* dump and restore backup suit
* Remy Card <card@Linux.EU.Org>, 1994-1997
- * Stelian Pop <pop@cybercable.fr>, 1999-2000
- * Stelian Pop <pop@cybercable.fr> - Alcôve <www.alcove.fr>, 2000
+ * Stelian Pop <pop@noos.fr>, 1999-2000
+ * Stelian Pop <pop@noos.fr> - Alcôve <www.alcove.fr>, 2000
*/
/*
#ifndef lint
static const char rcsid[] =
- "$Id: utilities.c,v 1.9 2000/11/10 14:42:25 stelian Exp $";
+ "$Id: utilities.c,v 1.13 2001/03/20 10:02:48 stelian Exp $";
#endif /* not lint */
+#include <config.h>
+#include <errno.h>
+#include <compaterr.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
#include <sys/param.h>
#include <sys/stat.h>
#ifdef __linux__
#include <sys/time.h>
#include <linux/ext2_fs.h>
+#include <ext2fs/ext2fs.h>
#include <bsdcompat.h>
#else /* __linux__ */
#include <ufs/ufs/dinode.h>
#include <ufs/ufs/dir.h>
#endif /* __linux__ */
-#include <errno.h>
-#include <compaterr.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-#ifdef __linux__
-#include <ext2fs/ext2fs.h>
-#endif
-
#include "restore.h"
#include "extern.h"
/*
* find lowest number file (above "start") that needs to be extracted
*/
-ino_t
-lowerbnd(ino_t start)
+dump_ino_t
+lowerbnd(dump_ino_t start)
{
register struct entry *ep;
/*
* find highest number file (below "start") that needs to be extracted
*/
-ino_t
-upperbnd(ino_t start)
+dump_ino_t
+upperbnd(dump_ino_t start)
{
register struct entry *ep;
/*
* Check to see if a name is on a dump tape.
*/
-ino_t
+dump_ino_t
dirlookup(const char *name)
{
struct direct *dp;
- ino_t ino;
+ dump_ino_t ino;
ino = ((dp = pathsearch(name)) == NULL) ? 0 : dp->d_ino;