2
sbin/fsdb/Makefile | 2 +-
3
sbin/fsdb/fsdb.8 | 2 +-
4
sbin/fsdb/fsdb.c | 14 +++++++++++++-
5
sbin/fsdb/fsdbutil.c | 13 ++++++++++++-
6
4 files changed, 27 insertions(+), 4 deletions(-)
10
@@ -263,7 +263,7 @@ There are a bunch of other things that y
14
-Use this tool with extreme caution--you can damage an FFS file system
15
+Use this tool with extreme caution\-\-you can damage an FFS file system
19
--- a/sbin/fsdb/fsdb.c
20
+++ b/sbin/fsdb/fsdb.c
21
@@ -35,13 +35,13 @@ static const char rcsid[] =
23
#include <sys/param.h>
32
-#include <timeconv.h>
34
#include <ufs/ufs/dinode.h>
35
#include <ufs/ufs/dir.h>
36
@@ -60,6 +60,18 @@ static int find_blks64(uint64_t *buf, in
37
static int find_indirblks32(uint32_t blk, int ind_level, uint32_t *blknum);
38
static int find_indirblks64(uint64_t blk, int ind_level, uint64_t *blknum);
40
+static inline int32_t
41
+_time_to_time32(time_t t)
46
+static inline int64_t
47
+_time_to_time64(time_t t)
55
--- a/sbin/fsdb/fsdbutil.c
56
+++ b/sbin/fsdb/fsdbutil.c
57
@@ -41,7 +41,6 @@ static const char rcsid[] =
61
-#include <timeconv.h>
63
#include <ufs/ufs/dinode.h>
64
#include <ufs/ffs/fs.h>
65
@@ -51,6 +50,18 @@ static const char rcsid[] =
70
+_time64_to_time(int64_t t64)
72
+ return((time_t)t64);
76
+_time32_to_time(int32_t t32)
78
+ return((time_t)t32);
81
static int charsperline(void);
82
static int printindir(ufs2_daddr_t blk, int level, char *bufp);
83
static void printblocks(ino_t inum, union dinode *dp);
84
--- a/sbin/fsdb/Makefile
85
+++ b/sbin/fsdb/Makefile
86
@@ -9,7 +9,7 @@ SRCS= fsdb.c fsdbutil.c \
87
pass5.c setup.c utilities.c ffs_subr.c ffs_tables.c
88
CFLAGS+= -I${.CURDIR}/../fsck_ffs
90
-LDADD= -ledit -ltermcap
92
DPADD= ${LIBEDIT} ${LIBTERMCAP}
93
.PATH: ${.CURDIR}/../fsck_ffs ${.CURDIR}/../../sys/ufs/ffs