Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Mirror sysctlgetmibinfo RUMP_ACTION change.
details: https://anonhg.NetBSD.org/src/rev/1199e3c2ca90
branches: trunk
changeset: 759593:1199e3c2ca90
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Dec 13 14:17:11 2010 +0000
description:
Mirror sysctlgetmibinfo RUMP_ACTION change.
diffstat:
lib/libc/gen/sysctlbyname.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r d61777fd8d75 -r 1199e3c2ca90 lib/libc/gen/sysctlbyname.c
--- a/lib/libc/gen/sysctlbyname.c Mon Dec 13 14:13:21 2010 +0000
+++ b/lib/libc/gen/sysctlbyname.c Mon Dec 13 14:17:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctlbyname.c,v 1.5 2009/07/22 22:53:41 alc Exp $ */
+/* $NetBSD: sysctlbyname.c,v 1.6 2010/12/13 14:17:11 pooka Exp $ */
/*-
* Copyright (c) 2003,2004 The NetBSD Foundation, Inc.
@@ -31,10 +31,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sysctlbyname.c,v 1.5 2009/07/22 22:53:41 alc Exp $");
+__RCSID("$NetBSD: sysctlbyname.c,v 1.6 2010/12/13 14:17:11 pooka Exp $");
#endif /* LIBC_SCCS and not lint */
+#ifndef RUMP_ACTION
#include "namespace.h"
+#endif
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -42,6 +44,11 @@
__weak_alias(sysctlbyname,_sysctlbyname)
#endif
+#ifdef RUMP_ACTION
+#include <rump/rump_syscalls.h>
+#define sysctl(a,b,c,d,e,f) rump_sys___sysctl(a,b,c,d,e,f)
+#endif
+
/*
* trivial sysctlbyname() function for the "lazy".
*/
Home |
Main Index |
Thread Index |
Old Index