From owner-cvs-all Sat Mar 24 18:47:52 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 1679137B71B; Sat, 24 Mar 2001 18:47:44 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id VAA60913; Sat, 24 Mar 2001 21:47:40 -0500 (EST) (envelope-from wollman) Date: Sat, 24 Mar 2001 21:47:40 -0500 (EST) From: Garrett Wollman Message-Id: <200103250247.VAA60913@khavrinen.lcs.mit.edu> To: Peter Wemm 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 In-Reply-To: <200103240440.f2O4en383425@freefall.freebsd.org> References: <200103240440.f2O4en383425@freefall.freebsd.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: 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