Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 21:47:40 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Peter Wemm <peter@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_xxx.c src/sys/sys utsname.h src/lib/libc/gen Makefile.inc __xuname.c uname.c
Message-ID:  <200103250247.VAA60913@khavrinen.lcs.mit.edu>
In-Reply-To: <200103240440.f2O4en383425@freefall.freebsd.org>
References:  <200103240440.f2O4en383425@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Fri, 23 Mar 2001 20:40:49 -0800 (PST), Peter Wemm <peter@FreeBSD.org> said:

>   clash.  The userland uname(3) kinda sucked anyway as the hostname
>   etc was too short.

Library routines are supposed to use protected symbol names to prevent
clashes, and in any case the uname() interface is utterly bogus and
should never be used internal to any library.  gethostname() is the
correct interface.

>And since the libc rpc interface now uses the utsname.nodename

Stop right there!  The correct fix was to change the broken RPC code
to use the right interface, not to add unnecessary excrescences to an
already bogus interface.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103250247.VAA60913>