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/svc_dg.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/svc_dg.c')
0 files changed, 0 insertions, 0 deletions