ts_sec -> tv_sec
ts_nsec -> tv_nsec
This commit is contained in:
parent
2936258f1d
commit
b70db4c5d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18406
@ -832,8 +832,8 @@ dotime(name, rts)
|
|||||||
warnx("date/time out of range");
|
warnx("date/time out of range");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
rts->ts_sec = sec;
|
rts->tv_sec = sec;
|
||||||
rts->ts_nsec = nsec;
|
rts->tv_nsec = nsec;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,15 +130,15 @@ printstat(cp, inum, dp)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
|
printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
|
||||||
p = ctime(&dp->di_mtime.ts_sec);
|
p = ctime(&dp->di_mtime.tv_sec);
|
||||||
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||||
dp->di_mtime.ts_nsec);
|
dp->di_mtime.tv_nsec);
|
||||||
p = ctime(&dp->di_ctime.ts_sec);
|
p = ctime(&dp->di_ctime.tv_sec);
|
||||||
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||||
dp->di_ctime.ts_nsec);
|
dp->di_ctime.tv_nsec);
|
||||||
p = ctime(&dp->di_atime.ts_sec);
|
p = ctime(&dp->di_atime.tv_sec);
|
||||||
printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
|
printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
|
||||||
dp->di_atime.ts_nsec);
|
dp->di_atime.tv_nsec);
|
||||||
|
|
||||||
if (pw = getpwuid(dp->di_uid))
|
if (pw = getpwuid(dp->di_uid))
|
||||||
printf("OWNER=%s ", pw->pw_name);
|
printf("OWNER=%s ", pw->pw_name);
|
||||||
|
@ -708,10 +708,10 @@ allocinotab(ino, dip, seekpt)
|
|||||||
if (mf == NULL)
|
if (mf == NULL)
|
||||||
return (itp);
|
return (itp);
|
||||||
node.ino = ino;
|
node.ino = ino;
|
||||||
node.timep[0].tv_sec = dip->di_atime.ts_sec;
|
node.timep[0].tv_sec = dip->di_atime.tv_sec;
|
||||||
node.timep[0].tv_usec = dip->di_atime.ts_nsec / 1000;
|
node.timep[0].tv_usec = dip->di_atime.tv_nsec / 1000;
|
||||||
node.timep[1].tv_sec = dip->di_mtime.ts_sec;
|
node.timep[1].tv_sec = dip->di_mtime.tv_sec;
|
||||||
node.timep[1].tv_usec = dip->di_mtime.ts_nsec / 1000;
|
node.timep[1].tv_usec = dip->di_mtime.tv_nsec / 1000;
|
||||||
node.mode = dip->di_mode;
|
node.mode = dip->di_mode;
|
||||||
node.uid = dip->di_uid;
|
node.uid = dip->di_uid;
|
||||||
node.gid = dip->di_gid;
|
node.gid = dip->di_gid;
|
||||||
|
@ -506,10 +506,10 @@ extractfile(name)
|
|||||||
|
|
||||||
curfile.name = name;
|
curfile.name = name;
|
||||||
curfile.action = USING;
|
curfile.action = USING;
|
||||||
timep[0].tv_sec = curfile.dip->di_atime.ts_sec;
|
timep[0].tv_sec = curfile.dip->di_atime.tv_sec;
|
||||||
timep[0].tv_usec = curfile.dip->di_atime.ts_nsec / 1000;
|
timep[0].tv_usec = curfile.dip->di_atime.tv_nsec / 1000;
|
||||||
timep[1].tv_sec = curfile.dip->di_mtime.ts_sec;
|
timep[1].tv_sec = curfile.dip->di_mtime.tv_sec;
|
||||||
timep[1].tv_usec = curfile.dip->di_mtime.ts_nsec / 1000;
|
timep[1].tv_usec = curfile.dip->di_mtime.tv_nsec / 1000;
|
||||||
mode = curfile.dip->di_mode;
|
mode = curfile.dip->di_mode;
|
||||||
switch (mode & IFMT) {
|
switch (mode & IFMT) {
|
||||||
|
|
||||||
@ -1037,9 +1037,9 @@ gethead(buf)
|
|||||||
buf->c_dinode.di_gid = u_ospcl.s_ospcl.c_dinode.odi_gid;
|
buf->c_dinode.di_gid = u_ospcl.s_ospcl.c_dinode.odi_gid;
|
||||||
buf->c_dinode.di_size = u_ospcl.s_ospcl.c_dinode.odi_size;
|
buf->c_dinode.di_size = u_ospcl.s_ospcl.c_dinode.odi_size;
|
||||||
buf->c_dinode.di_rdev = u_ospcl.s_ospcl.c_dinode.odi_rdev;
|
buf->c_dinode.di_rdev = u_ospcl.s_ospcl.c_dinode.odi_rdev;
|
||||||
buf->c_dinode.di_atime.ts_sec = u_ospcl.s_ospcl.c_dinode.odi_atime;
|
buf->c_dinode.di_atime.tv_sec = u_ospcl.s_ospcl.c_dinode.odi_atime;
|
||||||
buf->c_dinode.di_mtime.ts_sec = u_ospcl.s_ospcl.c_dinode.odi_mtime;
|
buf->c_dinode.di_mtime.tv_sec = u_ospcl.s_ospcl.c_dinode.odi_mtime;
|
||||||
buf->c_dinode.di_ctime.ts_sec = u_ospcl.s_ospcl.c_dinode.odi_ctime;
|
buf->c_dinode.di_ctime.tv_sec = u_ospcl.s_ospcl.c_dinode.odi_ctime;
|
||||||
buf->c_count = u_ospcl.s_ospcl.c_count;
|
buf->c_count = u_ospcl.s_ospcl.c_count;
|
||||||
bcopy(u_ospcl.s_ospcl.c_addr, buf->c_addr, (long)256);
|
bcopy(u_ospcl.s_ospcl.c_addr, buf->c_addr, (long)256);
|
||||||
if (u_ospcl.s_ospcl.c_magic != OFS_MAGIC ||
|
if (u_ospcl.s_ospcl.c_magic != OFS_MAGIC ||
|
||||||
|
Loading…
Reference in New Issue
Block a user