diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-04-03 23:48:28 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-04-03 23:48:28 +0000 |
commit | 7f0150c9c9771956131a1c51b83647d8407fc70d (patch) | |
tree | 00987f513b011ef69b6321747e9b4ba5de6fcbd8 /lib/libc/rpc/mt_misc.c | |
parent | cc67d8ceca336c033d20ccecace04af22d9e1bc4 (diff) | |
download | FreeBSD-src-7f0150c9c9771956131a1c51b83647d8407fc70d.zip FreeBSD-src-7f0150c9c9771956131a1c51b83647d8407fc70d.tar.gz |
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>
Diffstat (limited to 'lib/libc/rpc/mt_misc.c')
-rw-r--r-- | lib/libc/rpc/mt_misc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/rpc/mt_misc.c b/lib/libc/rpc/mt_misc.c index 4c6f5bb..39ec698 100644 --- a/lib/libc/rpc/mt_misc.c +++ b/lib/libc/rpc/mt_misc.c @@ -80,9 +80,6 @@ pthread_mutex_t svcraw_lock = PTHREAD_MUTEX_INITIALIZER; /* protects TSD key creation */ pthread_mutex_t tsd_lock = PTHREAD_MUTEX_INITIALIZER; -/* protects netconfig list */ -pthread_mutex_t nc_lock = PTHREAD_MUTEX_INITIALIZER; - /* xprtlist (svc_generic.c) */ pthread_mutex_t xprtlist_lock = PTHREAD_MUTEX_INITIALIZER; |