Page MenuHomeFreeBSD

D22958.diff
No OneTemporary

D22958.diff

Index: head/lib/libc/gen/sysctlbyname.c
===================================================================
--- head/lib/libc/gen/sysctlbyname.c
+++ head/lib/libc/gen/sysctlbyname.c
@@ -33,10 +33,6 @@
#include <sys/sysctl.h>
#include <string.h>
-#include "libc_private.h"
-
-#define SYSCTLBYNAME_OSREL 1300045
-
extern int __sysctlbyname(const char *name, size_t namelen, void *oldp,
size_t *oldlenp, const void *newp, size_t newlen);
@@ -44,16 +40,9 @@
sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
const void *newp, size_t newlen)
{
- int oid[CTL_MAXNAME];
size_t len;
- if (__getosreldate() >= SYSCTLBYNAME_OSREL) {
- len = strlen(name);
- return (__sysctlbyname(name, len, oldp, oldlenp, newp,
- newlen));
- }
- len = nitems(oid);
- if (sysctlnametomib(name, oid, &len) == -1)
- return (-1);
- return (sysctl(oid, len, oldp, oldlenp, newp, newlen));
+ len = strlen(name);
+ return (__sysctlbyname(name, len, oldp, oldlenp, newp,
+ newlen));
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 5:37 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16093964
Default Alt Text
D22958.diff (997 B)

Event Timeline