From owner-cvs-all Tue Apr 3 16:48:32 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D6BAE37B71A; Tue, 3 Apr 2001 16:48:28 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f33NmSm63510; Tue, 3 Apr 2001 16:48:28 -0700 (PDT) (envelope-from iedowse) Message-Id: <200104032348.f33NmSm63510@freefall.freebsd.org> From: Ian Dowse Date: Tue, 3 Apr 2001 16:48:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/rpc getnetconfig.c mt_misc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/04/03 16:48:28 PDT Modified files: lib/libc/rpc getnetconfig.c mt_misc.c Log: Fix some very broken code in __nc_error() that implements per-thread `nc_error' variables. Move the nc_lock mutex from mt_misc.c to a static variable within this function, since it is only used here. Add a new getnetconfigent() error code `NC_NOTFOUND' to report the case where the specified netid was not found. Set nc_error in all error cases in getnetconfigent() so that the error messages returned by nc_(s)perror are always meaningful. Add a terminating \n to the output of nc_perror() to match both our manpage and other implementations of this function. Reviewed by: deischen, alfred, Martin Blapp Revision Changes Path 1.4 +29 -15 src/lib/libc/rpc/getnetconfig.c 1.3 +1 -4 src/lib/libc/rpc/mt_misc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message