Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common Resurrect boottime, but only in the compat...



details:   https://anonhg.NetBSD.org/src/rev/778b4f1ef1e7
branches:  trunk
changeset: 466863:778b4f1ef1e7
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jan 04 02:40:22 2020 +0000

description:
Resurrect boottime, but only in the compat_90 module (whether built-in
or separately loaded).  This will enable running of old vmstat(1) images
on newer kernels.

diffstat:

 sys/compat/common/compat_90_mod.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r e78b8c3b4f7a -r 778b4f1ef1e7 sys/compat/common/compat_90_mod.c
--- a/sys/compat/common/compat_90_mod.c Sat Jan 04 02:21:15 2020 +0000
+++ b/sys/compat/common/compat_90_mod.c Sat Jan 04 02:40:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_90_mod.c,v 1.2 2019/10/28 23:32:15 christos Exp $       */
+/*     $NetBSD: compat_90_mod.c,v 1.3 2020/01/04 02:40:22 pgoyette Exp $       */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_90_mod.c,v 1.2 2019/10/28 23:32:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_90_mod.c,v 1.3 2020/01/04 02:40:22 pgoyette Exp $");
 
 #include <sys/systm.h>
 #include <sys/module.h>
@@ -77,3 +77,5 @@
                return ENOTTY;
        }
 }
+
+struct timespec boottime;      /* For access by older vmstat */



Home | Main Index | Thread Index | Old Index