Weak aliases for sysctlfoobar() functions.
This commit is contained in:
parent
f8bf8392a4
commit
8d5507a13f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysctlbyname.c,v 1.1 2004/03/25 19:36:26 atatat Exp $ */
|
||||
/* $NetBSD: sysctlbyname.c,v 1.2 2004/04/08 05:45:26 atatat Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003,2004 The NetBSD Foundation, Inc.
|
||||
|
@ -32,9 +32,14 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(sysctlbyname,_sysctlbyname)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* trivial sysctlbyname() function for the "lazy".
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysctlgetmibinfo.c,v 1.2 2004/03/26 22:54:42 he Exp $ */
|
||||
/* $NetBSD: sysctlgetmibinfo.c,v 1.3 2004/04/08 05:45:26 atatat Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003,2004 The NetBSD Foundation, Inc.
|
||||
|
@ -32,6 +32,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "namespace.h"
|
||||
#ifdef _REENTRANT
|
||||
#include "reentrant.h"
|
||||
#endif /* _REENTRANT */
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
|
@ -39,9 +43,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _REENTRANT
|
||||
#include "reentrant.h"
|
||||
#endif /* _REENTRANT */
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(__learn_tree,___learn_tree)
|
||||
__weak_alias(sysctlgetmibinfo,_sysctlgetmibinfo)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* the place where we attach stuff we learn on the fly, not
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysctlnametomib.c,v 1.1 2004/03/25 19:36:26 atatat Exp $ */
|
||||
/* $NetBSD: sysctlnametomib.c,v 1.2 2004/04/08 05:45:26 atatat Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003,2004 The NetBSD Foundation, Inc.
|
||||
|
@ -32,9 +32,14 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(sysctlnametomib,_sysctlnametomib)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* freebsd compatible sysctlnametomib() function, implemented as an
|
||||
* extremely thin wrapper around sysctlgetmibinfo(). i think the use
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: namespace.h,v 1.84 2004/03/04 23:42:39 kleink Exp $ */
|
||||
/* $NetBSD: namespace.h,v 1.85 2004/04/08 05:45:26 atatat Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
|
||||
|
@ -503,6 +503,9 @@
|
|||
#define svis _svis
|
||||
#define sysarch _sys_sysarch
|
||||
#define sysctl _sysctl
|
||||
#define sysctlbyname _sysctlbyname
|
||||
#define sysctlgetmibinfo _sysctlgetmibinfo
|
||||
#define sysctlnametomib _sysctlnametomib
|
||||
#define syslog _syslog
|
||||
#define tcdrain _tcdrain
|
||||
#define tcflow _tcflow
|
||||
|
@ -650,6 +653,7 @@
|
|||
#define dlerror __dlerror
|
||||
#define dladdr __dladdr
|
||||
#define fmtcheck __fmtcheck
|
||||
#define __learn_tree ___learn_tree
|
||||
#endif /* __weak_alias */
|
||||
|
||||
#endif /* _NAMESPACE_H_ */
|
||||
|
|
Loading…
Reference in New Issue