Unexpose the old uname(3) function.

Nowadays uname(3) is an inline function around __xuname(3). Prevent
linkage of new binaries against this compatibility function, similar to
what I did with ttyslot(3).
This commit is contained in:
Ed Schouten 2010-01-16 17:05:27 +00:00
parent 86c18b3607
commit 023b02dea7
2 changed files with 3 additions and 4 deletions

View File

@ -296,7 +296,6 @@ FBSD_1.0 {
tcflow; tcflow;
ualarm; ualarm;
ulimit; ulimit;
uname;
unvis; unvis;
strunvis; strunvis;
strunvisx; strunvisx;

View File

@ -33,15 +33,15 @@ static char sccsid[] = "From: @(#)uname.c 8.1 (Berkeley) 1/4/94";
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#define uname wrapped_uname
#include <sys/param.h> #include <sys/param.h>
#include <sys/sysctl.h> #include <sys/sysctl.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <errno.h> #include <errno.h>
#undef uname
int int
uname(struct utsname *name) __uname(struct utsname *name)
{ {
return __xuname(32, name); return __xuname(32, name);
} }
__sym_compat(uname, __uname, FBSD_1.0);