#ifndef lint
static const char rcsid[] =
- "$Id: utilities.c,v 1.10 2000/12/04 15:43:17 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;