Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc last of the RUMP_ACTION syscall swappers
details: https://anonhg.NetBSD.org/src/rev/d5844e9ecbbd
branches: trunk
changeset: 759616:d5844e9ecbbd
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Dec 13 21:07:54 2010 +0000
description:
last of the RUMP_ACTION syscall swappers
diffstat:
lib/libc/gen/sysctlnametomib.c | 11 +++++++++--
lib/libc/net/if_indextoname.c | 6 ++++--
2 files changed, 13 insertions(+), 4 deletions(-)
diffs (58 lines):
diff -r 98ecacf25550 -r d5844e9ecbbd lib/libc/gen/sysctlnametomib.c
--- a/lib/libc/gen/sysctlnametomib.c Mon Dec 13 20:51:11 2010 +0000
+++ b/lib/libc/gen/sysctlnametomib.c Mon Dec 13 21:07:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctlnametomib.c,v 1.4 2008/04/29 06:53:01 martin Exp $ */
+/* $NetBSD: sysctlnametomib.c,v 1.5 2010/12/13 21:07:55 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: sysctlnametomib.c,v 1.4 2008/04/29 06:53:01 martin Exp $");
+__RCSID("$NetBSD: sysctlnametomib.c,v 1.5 2010/12/13 21:07:55 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(sysctlnametomib,_sysctlnametomib)
#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 /* RUMP_ACTION */
+
/*
* freebsd compatible sysctlnametomib() function, implemented as an
* extremely thin wrapper around sysctlgetmibinfo(). i think the use
diff -r 98ecacf25550 -r d5844e9ecbbd lib/libc/net/if_indextoname.c
--- a/lib/libc/net/if_indextoname.c Mon Dec 13 20:51:11 2010 +0000
+++ b/lib/libc/net/if_indextoname.c Mon Dec 13 21:07:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_indextoname.c,v 1.5 2006/11/25 23:09:11 elad Exp $ */
+/* $NetBSD: if_indextoname.c,v 1.6 2010/12/13 21:07:54 pooka Exp $ */
/* $KAME: if_indextoname.c,v 1.7 2000/11/08 03:09:30 itojun Exp $ */
/*-
@@ -28,10 +28,12 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: if_indextoname.c,v 1.5 2006/11/25 23:09:11 elad Exp $");
+__RCSID("$NetBSD: if_indextoname.c,v 1.6 2010/12/13 21:07:54 pooka Exp $");
#endif /* LIBC_SCCS and not lint */
+#ifndef RUMP_ACTION
#include "namespace.h"
+#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_dl.h>
Home |
Main Index |
Thread Index |
Old Index