summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordima <dima@FreeBSD.org>1998-10-27 04:01:19 +0000
committerdima <dima@FreeBSD.org>1998-10-27 04:01:19 +0000
commit832b98b6ffeefa742b85a92148797a3cf4eab153 (patch)
tree03992c539b8793227b7010010c9020daee7e0e71 /sbin
parentedf1f9d5415de3b55c8cf737ff9b69cf7dc9f323 (diff)
downloadFreeBSD-src-832b98b6ffeefa742b85a92148797a3cf4eab153.zip
FreeBSD-src-832b98b6ffeefa742b85a92148797a3cf4eab153.tar.gz
64bit fixes.
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem somewhere is the physio() area) Submitted by: myself && Matt Dillon.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/traverse.c8
-rw-r--r--sbin/restore/dirs.c10
-rw-r--r--sbin/restore/symtab.c10
-rw-r--r--sbin/restore/tape.c30
4 files changed, 29 insertions, 29 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 952afc6..555e948 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: traverse.c,v 1.7 1998/06/15 06:58:12 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -501,14 +501,14 @@ void
writeheader(ino)
ino_t ino;
{
- register long sum, cnt, *lp;
+ register int32_t sum, cnt, *lp;
spcl.c_inumber = ino;
spcl.c_magic = NFS_MAGIC;
spcl.c_checksum = 0;
- lp = (long *)&spcl;
+ lp = (int32_t *)&spcl;
sum = 0;
- cnt = sizeof(union u_spcl) / (4 * sizeof(long));
+ cnt = sizeof(union u_spcl) / (4 * sizeof(int32_t));
while (--cnt >= 0) {
sum += *lp++;
sum += *lp++;
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c
index 15d7b06..db68d66 100644
--- a/sbin/restore/dirs.c
+++ b/sbin/restore/dirs.c
@@ -41,7 +41,7 @@
static char sccsid[] = "@(#)dirs.c 8.7 (Berkeley) 5/1/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: dirs.c,v 1.12 1998/07/28 06:20:05 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -71,8 +71,8 @@ static const char rcsid[] =
struct inotab {
struct inotab *t_next;
ino_t t_ino;
- long t_seekpt;
- long t_size;
+ int32_t t_seekpt;
+ int32_t t_size;
};
static struct inotab *inotab[HASHSIZE];
@@ -95,8 +95,8 @@ struct modeinfo {
#define DIRBLKSIZ 1024
struct rstdirdesc {
int dd_fd;
- long dd_loc;
- long dd_size;
+ int32_t dd_loc;
+ int32_t dd_size;
char dd_buf[DIRBLKSIZ];
};
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c
index f9a5422..795669c 100644
--- a/sbin/restore/symtab.c
+++ b/sbin/restore/symtab.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)symtab.c 8.3 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: symtab.c,v 1.5 1998/07/28 06:20:13 charnier Exp $";
#endif /* not lint */
/*
@@ -440,13 +440,13 @@ freename(name)
* Useful quantities placed at the end of a dumped symbol table.
*/
struct symtableheader {
- long volno;
- long stringsize;
- long entrytblsize;
+ int32_t volno;
+ int32_t stringsize;
+ int32_t entrytblsize;
time_t dumptime;
time_t dumpdate;
ino_t maxino;
- long ntrec;
+ int32_t ntrec;
};
/*
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c
index 03ddd15..80a14a8 100644
--- a/sbin/restore/tape.c
+++ b/sbin/restore/tape.c
@@ -41,7 +41,7 @@
static char sccsid[] = "@(#)tape.c 8.9 (Berkeley) 5/1/95";
#endif
static const char rcsid[] =
- "$Id: tape.c,v 1.13 1998/07/28 06:20:15 charnier Exp $";
+ "$Id: tape.c,v 1.14 1998/07/28 18:50:01 imp Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1009,32 +1009,32 @@ gethead(buf)
long i;
union {
quad_t qval;
- long val[2];
+ int32_t val[2];
} qcvt;
union u_ospcl {
char dummy[TP_BSIZE];
struct s_ospcl {
- long c_type;
- long c_date;
- long c_ddate;
- long c_volume;
- long c_tapea;
+ int32_t c_type;
+ int32_t c_date;
+ int32_t c_ddate;
+ int32_t c_volume;
+ int32_t c_tapea;
u_short c_inumber;
- long c_magic;
- long c_checksum;
+ int32_t c_magic;
+ int32_t c_checksum;
struct odinode {
unsigned short odi_mode;
u_short odi_nlink;
u_short odi_uid;
u_short odi_gid;
- long odi_size;
- long odi_rdev;
+ int32_t odi_size;
+ int32_t odi_rdev;
char odi_addr[36];
- long odi_atime;
- long odi_mtime;
- long odi_ctime;
+ int32_t odi_atime;
+ int32_t odi_mtime;
+ int32_t odi_ctime;
} c_dinode;
- long c_count;
+ int32_t c_count;
char c_addr[256];
} s_ospcl;
} u_ospcl;
OpenPOWER on IntegriCloud