Mirror sysctlgetmibinfo RUMP_ACTION change.

This commit is contained in:
pooka 2010-12-13 14:17:11 +00:00
parent d3ab3ede2e
commit 2f36209c20

View File

@ -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 @@ __RCSID("$NetBSD: sysctlbyname.c,v 1.5 2009/07/22 22:53:41 alc Exp $");
__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".
*/