freebsd-nq/lib/libc
Bill Paul 20e4b00a08 Don't bother trying to flock() /var/run/ypbind.lock; this breaks when
/var/run resides on an NFS filesystem (flock() always returns 0 in
this case, so we falsely assume that ypbind is dead and bail out).

Settle instead for better failure checking when using clnttcp_create()
and clnt_call() to interact with ypbind. We still try to flock()
/var/yp/binding/$DOMAINNAME.2, but if this doesn't work, we drop into
the code that retrieves the binding information from ypbind directly.
If that also fails, then we're toast. On NFS filesystems, this means
we'll be ignoring the binding file for no reason and always talking to
ypbind even though we don't have to, but at least things will work.

(I could just replace the flock(/var/run/ypbind.lock) check with
an RPC call to ypbind's NULLPROC procedure, but if the flock() of
the binding file doesn't pan out we're going to try to talk to
ypbind later anyway. *sigh* Is NFS file locking ever going to work?)
1996-03-23 22:48:19 +00:00
..
amd64 Put in missing '_' in call to wrapper _thread_sys_sigsetmask() function. 1996-02-17 12:25:21 +00:00
compat-43 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
db Close PR#218. Don't reference non-existant dbm(3) and ndbm(3) manual 1996-03-03 08:53:05 +00:00
gen alarm -> ualarm. 1996-03-19 13:53:00 +00:00
gmon
i386 rfork/minherit glue in libc 1996-02-23 19:56:55 +00:00
locale Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
net Fix other half of problem reported in PR #1079: _getnetbynisaddr() is 1996-03-23 22:16:22 +00:00
nls Fixed docs/521. 1996-02-09 12:25:08 +00:00
quad
regex More cleanup. 1995-10-22 14:40:55 +00:00
rpc Work around a bug in the Sun rpc code. This fixes a problem where 1996-03-17 20:12:53 +00:00
stdio The 4.4-lite vfprintf counted the %# hex prefix and the sign in 1996-03-20 18:28:48 +00:00
stdlib Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
stdtime Convert "time zone" to "timezone" in section NAME 1996-02-28 11:59:50 +00:00
string Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
sys Update the current sigaction(2) man page to current reality.. 1996-03-03 14:52:54 +00:00
xdr Minor cleanup of the rpc man pages to silence manck. 1996-02-12 00:02:42 +00:00
yp Don't bother trying to flock() /var/run/ypbind.lock; this breaks when 1996-03-23 22:48:19 +00:00
Makefile Remove support for OSI networking in user-land (#ifdef OSI aor CCITT) 1996-02-06 20:36:15 +00:00