Date: Sat, 16 Jan 2010 17:05:27 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202447 - head/lib/libc/gen Message-ID: <201001161705.o0GH5ReU056240@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sat Jan 16 17:05:27 2010 New Revision: 202447 URL: http://svn.freebsd.org/changeset/base/202447 Log: 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). Modified: head/lib/libc/gen/Symbol.map head/lib/libc/gen/uname.c Modified: head/lib/libc/gen/Symbol.map ============================================================================== --- head/lib/libc/gen/Symbol.map Sat Jan 16 15:00:35 2010 (r202446) +++ head/lib/libc/gen/Symbol.map Sat Jan 16 17:05:27 2010 (r202447) @@ -296,7 +296,6 @@ FBSD_1.0 { tcflow; ualarm; ulimit; - uname; unvis; strunvis; strunvisx; Modified: head/lib/libc/gen/uname.c ============================================================================== --- head/lib/libc/gen/uname.c Sat Jan 16 15:00:35 2010 (r202446) +++ head/lib/libc/gen/uname.c Sat Jan 16 17:05:27 2010 (r202447) @@ -33,15 +33,15 @@ static char sccsid[] = "From: @(#)uname. #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#define uname wrapped_uname #include <sys/param.h> #include <sys/sysctl.h> #include <sys/utsname.h> #include <errno.h> -#undef uname int -uname(struct utsname *name) +__uname(struct utsname *name) { return __xuname(32, name); } + +__sym_compat(uname, __uname, FBSD_1.0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001161705.o0GH5ReU056240>