ts_sec -> tv_sec

ts_nsec -> tv_nsec
This commit is contained in:
nate 1996-09-20 04:24:31 +00:00
parent c6c987075a
commit 4c36b3483c
5 changed files with 13 additions and 13 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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 \