diff options
| author | christos <christos@NetBSD.org> | 2005-03-10 14:12:27 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2005-03-10 14:12:27 +0000 |
| commit | 47e40fce3a28bef84be109b3fd84164a658a4eaf (patch) | |
| tree | 20028cfdecf8f87b658cac92ae1501ca6d3dc8a7 /sys/compat/linux/common/linux_file.c | |
| parent | 62d47f2703c23c87e0bbc36f70ad9804e7f00cd6 (diff) | |
Add nanosecond handling on the stat and stat64 code for the i386.
Diffstat (limited to 'sys/compat/linux/common/linux_file.c')
| -rw-r--r-- | sys/compat/linux/common/linux_file.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_file.c b/sys/compat/linux/common/linux_file.c index 536e00c73ef..5807e8ac7b8 100644 --- a/sys/compat/linux/common/linux_file.c +++ b/sys/compat/linux/common/linux_file.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_file.c,v 1.65 2005/02/26 23:10:19 perry Exp $ */ +/* $NetBSD: linux_file.c,v 1.66 2005/03/10 14:12:28 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.65 2005/02/26 23:10:19 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.66 2005/03/10 14:12:28 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -515,6 +515,11 @@ bsd_to_linux_stat(bsp, lsp) lsp->lst_atime = bsp->st_atime; lsp->lst_mtime = bsp->st_mtime; lsp->lst_ctime = bsp->st_ctime; +#ifdef LINUX_STAT_HAS_NSEC + lsp->lst_atime_nsec = bsp->st_atimensec; + lsp->lst_mtime_nsec = bsp->st_mtimensec; + lsp->lst_ctime_nsec = bsp->st_ctimensec; +#endif } /* |
