Date: Tue, 3 Apr 2001 16:48:28 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/rpc getnetconfig.c mt_misc.c Message-ID: <200104032348.f33NmSm63510@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <mb@imp.ch> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104032348.f33NmSm63510>