need <sys/time.h>

This commit is contained in:
cgd 1994-04-25 18:23:19 +00:00
parent af8ee2b8b6
commit e82c231da3
10 changed files with 24 additions and 12 deletions

View File

@ -39,10 +39,11 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)dumpfs.c 5.10 (Berkeley) 6/1/90";*/
static char rcsid[] = "$Id: dumpfs.c,v 1.4 1993/08/01 18:27:32 mycroft Exp $";
static char rcsid[] = "$Id: dumpfs.c,v 1.5 1994/04/25 18:23:19 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)dir.c 5.19 (Berkeley) 7/26/91";*/
static char rcsid[] = "$Id: dir.c,v 1.5 1993/11/05 23:32:06 mycroft Exp $";
static char rcsid[] = "$Id: dir.c,v 1.6 1994/04/25 18:28:20 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#define KERNEL

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)inode.c 5.18 (Berkeley) 3/19/91";*/
static char rcsid[] = "$Id: inode.c,v 1.6 1994/04/18 06:08:27 cgd Exp $";
static char rcsid[] = "$Id: inode.c,v 1.7 1994/04/25 18:28:25 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <ufs/dir.h>
@ -505,7 +506,8 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
(void)time(&dp->di_atime);
(void)time(&dp->di_atime.ts_sec);
dp->di_atime.ts_nsec = 0;
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);

View File

@ -39,10 +39,11 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/
static char rcsid[] = "$Id: main.c,v 1.11 1994/04/06 00:08:58 cgd Exp $";
static char rcsid[] = "$Id: main.c,v 1.12 1994/04/25 18:28:29 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <fstab.h>

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)pass1.c 5.16 (Berkeley) 3/19/91";*/
static char rcsid[] = "$Id: pass1.c,v 1.5 1993/08/01 18:27:21 mycroft Exp $";
static char rcsid[] = "$Id: pass1.c,v 1.6 1994/04/25 18:28:35 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <stdlib.h>

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)dir.c 5.19 (Berkeley) 7/26/91";*/
static char rcsid[] = "$Id: dir.c,v 1.5 1993/11/05 23:32:06 mycroft Exp $";
static char rcsid[] = "$Id: dir.c,v 1.6 1994/04/25 18:28:20 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#define KERNEL

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)inode.c 5.18 (Berkeley) 3/19/91";*/
static char rcsid[] = "$Id: inode.c,v 1.6 1994/04/18 06:08:27 cgd Exp $";
static char rcsid[] = "$Id: inode.c,v 1.7 1994/04/25 18:28:25 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <ufs/dir.h>
@ -505,7 +506,8 @@ allocino(request, type)
return (0);
}
dp->di_mode = type;
(void)time(&dp->di_atime);
(void)time(&dp->di_atime.ts_sec);
dp->di_atime.ts_nsec = 0;
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);

View File

@ -39,10 +39,11 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/
static char rcsid[] = "$Id: main.c,v 1.11 1994/04/06 00:08:58 cgd Exp $";
static char rcsid[] = "$Id: main.c,v 1.12 1994/04/25 18:28:29 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <fstab.h>

View File

@ -33,10 +33,11 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)pass1.c 5.16 (Berkeley) 3/19/91";*/
static char rcsid[] = "$Id: pass1.c,v 1.5 1993/08/01 18:27:21 mycroft Exp $";
static char rcsid[] = "$Id: pass1.c,v 1.6 1994/04/25 18:28:35 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>
#include <stdlib.h>

View File

@ -39,10 +39,11 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)dumpfs.c 5.10 (Berkeley) 6/1/90";*/
static char rcsid[] = "$Id: dumpfs.c,v 1.4 1993/08/01 18:27:32 mycroft Exp $";
static char rcsid[] = "$Id: dumpfs.c,v 1.5 1994/04/25 18:23:19 cgd Exp $";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <ufs/dinode.h>
#include <ufs/fs.h>