Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/vfs Make this run in NetBSD 6 by using st_mtimespec...



details:   https://anonhg.NetBSD.org/src/rev/675d3986dd2d
branches:  trunk
changeset: 336875:675d3986dd2d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Mar 24 23:24:55 2015 +0000

description:
Make this run in NetBSD 6 by using st_mtimespec instead of st_mtim.

st_mtimespec is our traditional nonstandard name for what POSIX
called st_mtim in 2008, but these aren't going to run in non-NetBSD
anyway so using the nonstandard name shouldn't be an issue.

diffstat:

 tests/fs/vfs/t_vnops.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r f09af46a15c2 -r 675d3986dd2d tests/fs/vfs/t_vnops.c
--- a/tests/fs/vfs/t_vnops.c    Tue Mar 24 23:22:47 2015 +0000
+++ b/tests/fs/vfs/t_vnops.c    Tue Mar 24 23:24:55 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_vnops.c,v 1.44 2014/12/29 15:31:44 hannken Exp $     */
+/*     $NetBSD: t_vnops.c,v 1.45 2015/03/24 23:24:55 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -118,10 +118,10 @@
                FIELD(st_uid);
                FIELD(st_gid);
                FIELD(st_rdev);
-               TIME(st_atim);
-               TIME(st_mtim);
-               TIME(st_ctim);
-               TIME(st_birthtim);
+               TIME(st_atimespec);
+               TIME(st_mtimespec);
+               TIME(st_ctimespec);
+               TIME(st_birthtimespec);
                FIELD(st_size);
                FIELD(st_blocks);
                FIELD(st_flags);



Home | Main Index | Thread Index | Old Index