Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/darwin Added a few kern sysctl which are the same...



details:   https://anonhg.NetBSD.org/src/rev/95336bb34304
branches:  trunk
changeset: 539915:95336bb34304
user:      manu <manu%NetBSD.org@localhost>
date:      Fri Nov 29 13:18:09 2002 +0000

description:
Added a few kern sysctl which are the same on Darwin and NetBSD.

diffstat:

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

diffs (51 lines):

diff -r 86bc6abba5ac -r 95336bb34304 sys/compat/darwin/darwin_sysctl.c
--- a/sys/compat/darwin/darwin_sysctl.c Fri Nov 29 13:17:22 2002 +0000
+++ b/sys/compat/darwin/darwin_sysctl.c Fri Nov 29 13:18:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: darwin_sysctl.c,v 1.2 2002/11/28 21:23:54 manu Exp $ */
+/*     $NetBSD: darwin_sysctl.c,v 1.3 2002/11/29 13:18:09 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.2 2002/11/28 21:23:54 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_sysctl.c,v 1.3 2002/11/29 13:18:09 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -188,6 +188,32 @@
        struct proc *p;
 {
        switch (name[0]) {
+       /* sysctl with the same definition */
+       case DARWIN_KERN_OSTYPE:
+       case DARWIN_KERN_OSRELEASE:
+       case DARWIN_KERN_OSREV:
+       case DARWIN_KERN_VERSION:
+       case DARWIN_KERN_MAXVNODES:
+       case DARWIN_KERN_MAXPROC:
+       case DARWIN_KERN_MAXFILES:
+       case DARWIN_KERN_ARGMAX:
+       case DARWIN_KERN_SECURELVL:
+       case DARWIN_KERN_HOSTNAME:
+       case DARWIN_KERN_HOSTID:
+       case DARWIN_KERN_CLOCKRATE:
+       case DARWIN_KERN_VNODE:
+       case DARWIN_KERN_PROC:
+       case DARWIN_KERN_FILE:
+       case DARWIN_KERN_PROF:
+       case DARWIN_KERN_POSIX1:
+       case DARWIN_KERN_NGROUPS:
+       case DARWIN_KERN_JOB_CONTROL:
+       case DARWIN_KERN_SAVED_IDS:
+       case DARWIN_KERN_BOOTTIME:
+       case DARWIN_KERN_NISDOMAINNAME:
+       case DARWIN_KERN_MAXPARTITIONS:
+               return kern_sysctl(name, 1, oldp, oldlenp, newp, newlen, p);
+               break;
        default:
                return EOPNOTSUPP;
        }



Home | Main Index | Thread Index | Old Index