Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 In stat structure conversions, do set st...
details: https://anonhg.NetBSD.org/src/rev/5e35aa1e725a
branches: trunk
changeset: 760907:5e35aa1e725a
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Jan 16 23:21:16 2011 +0000
description:
In stat structure conversions, do set st_birthtimespec member values
if exists.
diffstat:
sys/compat/netbsd32/netbsd32_conv.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 2a893e9e463b -r 5e35aa1e725a sys/compat/netbsd32/netbsd32_conv.h
--- a/sys/compat/netbsd32/netbsd32_conv.h Sun Jan 16 19:29:59 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_conv.h Sun Jan 16 23:21:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_conv.h,v 1.23 2011/01/04 11:00:31 matt Exp $ */
+/* $NetBSD: netbsd32_conv.h,v 1.24 2011/01/16 23:21:16 njoly Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -400,6 +400,8 @@
sb32p->st_blocks = sbp->st_blocks;
sb32p->st_flags = sbp->st_flags;
sb32p->st_gen = sbp->st_gen;
+ sb32p->st_birthtimespec.tv_sec = (int32_t)sbp->st_birthtimespec.tv_sec;
+ sb32p->st_birthtimespec.tv_nsec = (netbsd32_long)sbp->st_birthtimespec.tv_nsec;
}
static __inline void
@@ -419,6 +421,8 @@
sb32p->st_mtimespec.tv_nsec = (netbsd32_long)sbp->st_mtimespec.tv_nsec;
sb32p->st_ctimespec.tv_sec = (int32_t)sbp->st_ctimespec.tv_sec;
sb32p->st_ctimespec.tv_nsec = (netbsd32_long)sbp->st_ctimespec.tv_nsec;
+ sb32p->st_birthtimespec.tv_sec = (int32_t)sbp->st_birthtimespec.tv_sec;
+ sb32p->st_birthtimespec.tv_nsec = (netbsd32_long)sbp->st_birthtimespec.tv_nsec;
sb32p->st_blksize = sbp->st_blksize;
sb32p->st_blocks = sbp->st_blocks;
sb32p->st_flags = sbp->st_flags;
@@ -442,6 +446,8 @@
sb32p->st_mtimespec.tv_nsec = (netbsd32_long)sbp->st_mtimespec.tv_nsec;
sb32p->st_ctimespec.tv_sec = (netbsd32_time_t)sbp->st_ctimespec.tv_sec;
sb32p->st_ctimespec.tv_nsec = (netbsd32_long)sbp->st_ctimespec.tv_nsec;
+ sb32p->st_birthtimespec.tv_sec = (netbsd32_time_t)sbp->st_birthtimespec.tv_sec;
+ sb32p->st_birthtimespec.tv_nsec = (netbsd32_long)sbp->st_birthtimespec.tv_nsec;
sb32p->st_blksize = sbp->st_blksize;
sb32p->st_blocks = sbp->st_blocks;
sb32p->st_flags = sbp->st_flags;
Home |
Main Index |
Thread Index |
Old Index