aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1996-09-20 04:24:31 +0000
committerNate Williams <nate@FreeBSD.org>1996-09-20 04:24:31 +0000
commit2936258f1dd4448884efb4b544dd322498de20b9 (patch)
tree1839a20b775e22c9fe70f70fe0e76f13a985776b
parent2514dd6975446feedaede3c788801b17a74082cc (diff)
downloadsrc-2936258f1dd4448884efb4b544dd322498de20b9.tar.gz
src-2936258f1dd4448884efb4b544dd322498de20b9.zip
ts_sec -> tv_sec
ts_nsec -> tv_nsec
Notes
Notes: svn path=/head/; revision=18405
-rw-r--r--sbin/fsck/inode.c4
-rw-r--r--sbin/fsck_ffs/inode.c4
-rw-r--r--sbin/fsck_ifs/inode.c4
-rw-r--r--sbin/newfs/mkfs.c6
-rw-r--r--sbin/newlfs/lfs.c8
5 files changed, 13 insertions, 13 deletions
diff --git a/sbin/fsck/inode.c b/sbin/fsck/inode.c
index aa47fb8bda41..1c9f9b67f6ea 100644
--- a/sbin/fsck/inode.c
+++ b/sbin/fsck/inode.c
@@ -456,7 +456,7 @@ pinode(ino)
if (preen)
printf("%s: ", cdevname);
printf("SIZE=%qu ", dp->di_size);
- p = ctime(&dp->di_mtime.ts_sec);
+ p = ctime(&dp->di_mtime.tv_sec);
printf("MTIME=%12.12s %4.4s ", &p[4], &p[20]);
}
@@ -527,7 +527,7 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
- (void)time(&dp->di_atime.ts_sec);
+ (void)time(&dp->di_atime.tv_sec);
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);
diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c
index aa47fb8bda41..1c9f9b67f6ea 100644
--- a/sbin/fsck_ffs/inode.c
+++ b/sbin/fsck_ffs/inode.c
@@ -456,7 +456,7 @@ pinode(ino)
if (preen)
printf("%s: ", cdevname);
printf("SIZE=%qu ", dp->di_size);
- p = ctime(&dp->di_mtime.ts_sec);
+ p = ctime(&dp->di_mtime.tv_sec);
printf("MTIME=%12.12s %4.4s ", &p[4], &p[20]);
}
@@ -527,7 +527,7 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
- (void)time(&dp->di_atime.ts_sec);
+ (void)time(&dp->di_atime.tv_sec);
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);
diff --git a/sbin/fsck_ifs/inode.c b/sbin/fsck_ifs/inode.c
index aa47fb8bda41..1c9f9b67f6ea 100644
--- a/sbin/fsck_ifs/inode.c
+++ b/sbin/fsck_ifs/inode.c
@@ -456,7 +456,7 @@ pinode(ino)
if (preen)
printf("%s: ", cdevname);
printf("SIZE=%qu ", dp->di_size);
- p = ctime(&dp->di_mtime.ts_sec);
+ p = ctime(&dp->di_mtime.tv_sec);
printf("MTIME=%12.12s %4.4s ", &p[4], &p[20]);
}
@@ -527,7 +527,7 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
- (void)time(&dp->di_atime.ts_sec);
+ (void)time(&dp->di_atime.tv_sec);
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 29e1cdd44601..d67090b2bc7b 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -886,9 +886,9 @@ fsinit(utime)
/*
* initialize the node
*/
- node.di_atime.ts_sec = utime;
- node.di_mtime.ts_sec = utime;
- node.di_ctime.ts_sec = utime;
+ node.di_atime.tv_sec = utime;
+ node.di_mtime.tv_sec = utime;
+ node.di_ctime.tv_sec = utime;
#ifdef LOSTDIR
/*
* create the lost+found directory
diff --git a/sbin/newlfs/lfs.c b/sbin/newlfs/lfs.c
index 4859e3017b5e..c22f19ffd04b 100644
--- a/sbin/newlfs/lfs.c
+++ b/sbin/newlfs/lfs.c
@@ -627,10 +627,10 @@ make_dinode(ino, dip, nblocks, saddr, lfsp)
dip->di_blocks = nblocks << lfsp->lfs_fsbtodb;
dip->di_size = (nblocks << lfsp->lfs_bshift);
- dip->di_atime.ts_sec = dip->di_mtime.ts_sec =
- dip->di_ctime.ts_sec = lfsp->lfs_tstamp;
- dip->di_atime.ts_nsec = dip->di_mtime.ts_nsec =
- dip->di_ctime.ts_nsec = 0;
+ dip->di_atime.tv_sec = dip->di_mtime.tv_sec =
+ dip->di_ctime.tv_sec = lfsp->lfs_tstamp;
+ dip->di_atime.tv_nsec = dip->di_mtime.tv_nsec =
+ dip->di_ctime.tv_nsec = 0;
dip->di_inumber = ino;
#define SEGERR \