1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Whoops, I should've used the LINT config file. More ts -> tv changes

for timespec structure.
This commit is contained in:
Nate Williams 1996-09-20 05:56:36 +00:00
parent 95a1574e4f
commit d977b72dbd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18413
4 changed files with 18 additions and 18 deletions

View File

@ -35,7 +35,7 @@
*
* @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94
*
* $Id: fdesc_vnops.c,v 1.17 1996/06/12 05:09:52 gpalmer Exp $
* $Id: fdesc_vnops.c,v 1.18 1996/09/03 14:22:12 bde Exp $
*/
/*
@ -488,8 +488,8 @@ fdesc_getattr(ap)
vap->va_gid = 0;
vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
vap->va_blocksize = DEV_BSIZE;
vap->va_atime.ts_sec = boottime.tv_sec;
vap->va_atime.ts_nsec = 0;
vap->va_atime.tv_sec = boottime.tv_sec;
vap->va_atime.tv_nsec = 0;
vap->va_mtime = vap->va_atime;
vap->va_ctime = vap->va_mtime;
vap->va_gen = 0;

View File

@ -1,7 +1,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.25 1996/09/10 08:27:39 bde Exp $
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.26 1996/09/11 07:52:18 julian Exp $
*
* symlinks can wait 'til later.
*/
@ -555,7 +555,7 @@ DBPRINT(("getattr\n"));
vap->va_fileid = (long)file_node;
vap->va_size = file_node->len; /* now a u_quad_t */
vap->va_blocksize = 512;
if(file_node->ctime.ts_sec)
if(file_node->ctime.tv_sec)
{
vap->va_ctime = file_node->ctime;
}
@ -563,7 +563,7 @@ DBPRINT(("getattr\n"));
{
TIMEVAL_TO_TIMESPEC(&boottime,&(vap->va_ctime));
}
if(file_node->mtime.ts_sec)
if(file_node->mtime.tv_sec)
{
vap->va_mtime = file_node->mtime;
}
@ -571,7 +571,7 @@ DBPRINT(("getattr\n"));
{
TIMEVAL_TO_TIMESPEC(&boottime,&(vap->va_mtime));
}
if(file_node->atime.ts_sec)
if(file_node->atime.tv_sec)
{
vap->va_atime = file_node->atime;
}
@ -617,7 +617,7 @@ DBPRINT(("setattr\n"));
(vap->va_rdev != VNOVAL) ||
(vap->va_bytes != VNOVAL) ||
(vap->va_gen != VNOVAL) ||
(vap->va_atime.ts_sec != VNOVAL))
(vap->va_atime.tv_sec != VNOVAL))
{
return EINVAL;
}
@ -625,17 +625,17 @@ DBPRINT(("setattr\n"));
if (vap->va_size != VNOVAL) {
return error; /*XXX (?) */
}
if (vap->va_atime.ts_sec != VNOVAL)
if (vap->va_atime.tv_sec != VNOVAL)
{
file_node->atime = vap->va_atime;
}
if (vap->va_mtime.ts_sec != VNOVAL)
if (vap->va_mtime.tv_sec != VNOVAL)
{
file_node->mtime = vap->va_mtime;
}
if (vap->va_ctime.ts_sec != VNOVAL)
if (vap->va_ctime.tv_sec != VNOVAL)
{
file_node->ctime = vap->va_ctime;
}

View File

@ -35,7 +35,7 @@
*
* @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94
*
* $Id: fdesc_vnops.c,v 1.17 1996/06/12 05:09:52 gpalmer Exp $
* $Id: fdesc_vnops.c,v 1.18 1996/09/03 14:22:12 bde Exp $
*/
/*
@ -488,8 +488,8 @@ fdesc_getattr(ap)
vap->va_gid = 0;
vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
vap->va_blocksize = DEV_BSIZE;
vap->va_atime.ts_sec = boottime.tv_sec;
vap->va_atime.ts_nsec = 0;
vap->va_atime.tv_sec = boottime.tv_sec;
vap->va_atime.tv_nsec = 0;
vap->va_mtime = vap->va_atime;
vap->va_ctime = vap->va_mtime;
vap->va_gen = 0;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs_inode.c 8.5 (Berkeley) 12/30/93
* $Id: lfs_inode.c,v 1.11 1995/12/07 12:47:55 davidg Exp $
* $Id: lfs_inode.c,v 1.12 1996/01/05 18:31:52 wollman Exp $
*/
#include "opt_quota.h"
@ -114,13 +114,13 @@ lfs_update(ap)
return(0);
if (ip->i_flag & IN_ACCESS)
ip->i_atime.ts_sec = ap->a_access->tv_sec;
ip->i_atime.tv_sec = ap->a_access->tv_sec;
if (ip->i_flag & IN_UPDATE) {
ip->i_mtime.ts_sec = ap->a_modify->tv_sec;
ip->i_mtime.tv_sec = ap->a_modify->tv_sec;
(ip)->i_modrev++;
}
if (ip->i_flag & IN_CHANGE)
ip->i_ctime.ts_sec = time.tv_sec;
ip->i_ctime.tv_sec = time.tv_sec;
ip->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_UPDATE);
if (!(ip->i_flag & IN_MODIFIED))