Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108305236
D22958.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
997 B
Referenced Files
None
Subscribers
None
D22958.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D22958: sysctlbyname(2): Remove temporary compatibility layer
Attached
Detach File
Event Timeline
Log In to Comment