Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/darwin Add HW_PAGE_SIZE sysctl



details:   https://anonhg.NetBSD.org/src/rev/e1838856222c
branches:  trunk
changeset: 555595:e1838856222c
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Nov 22 23:26:52 2003 +0000

description:
Add HW_PAGE_SIZE sysctl

diffstat:

 sys/compat/darwin/darwin_sysctl.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r bed74c91e9f4 -r e1838856222c sys/compat/darwin/darwin_sysctl.c
--- a/sys/compat/darwin/darwin_sysctl.c Sat Nov 22 22:18:32 2003 +0000
+++ b/sys/compat/darwin/darwin_sysctl.c Sat Nov 22 23:26:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: darwin_sysctl.c,v 1.18 2003/10/25 18:38:07 christos Exp $ */
+/*     $NetBSD: darwin_sysctl.c,v 1.19 2003/11/22 23:26:52 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: darwin_sysctl.c,v 1.18 2003/10/25 18:38:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_sysctl.c,v 1.19 2003/11/22 23:26:52 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -351,6 +351,9 @@
                return sysctl_rdstring(oldp, oldlenp, newp,
                    darwin_sysctl_hw_machine);
                break; 
+       case DARWIN_HW_PAGESIZE:
+               return sysctl_rdint(oldp, oldlenp, newp, PAGE_SIZE);
+               break;
        default:
                return EOPNOTSUPP;
        }



Home | Main Index | Thread Index | Old Index