Home | History | Annotate | Download | only in yp
History log of /src/lib/libc/yp/yplib.c
RevisionDateAuthorComments
 1.46  18-Sep-2014  christos make more descriptors that we open as close-on-exec
 1.45  20-Mar-2012  matt Convert to use C89 prototypes.
Remove use of __P
 1.44  02-Mar-2012  christos PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
don't hang forever if requested.
 1.43  03-Nov-2006  christos branches: 1.43.42;
use FD_CLOEXEC instead of 1.
 1.42  29-Oct-2004  lukem #include "reentrant.h" instead of <threadlib.h>
 1.41  27-May-2004  christos add a simple lock in _yp_check(), to make it re-entrant.
 1.40  10-Dec-2003  agc Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.39  17-Nov-2002  itojun use strlcpy where it is more appropriate.
 1.38  11-Nov-2002  thorpej Fix signed/unsigned comparison warnings.
 1.37  06-Jul-2000  christos branches: 1.37.2;
add explicit casts to avoid parameter conversion warnings.
 1.36  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.35  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.34  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.33  31-Jan-1999  christos xdrproc_t casts
 1.32  27-Jul-1998  mycroft Remove a little lint.
 1.31  23-Jul-1997  lukem Relax checks in _yp_invalid_domain(); yp domains don't have to be
RFC1035 compliant. Still ensure that the give domain isn't empty,
isn't too long, and isn't going to be a security problem.
 1.30  21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.29  13-Jul-1997  christos Fix RCSID's
printf -> warnx
Fix gcc warnings
Put locally declared functions in local.h
 1.28  07-Jul-1997  lukem * implement _yp_invalid_domain, which returns non-zero if the given
domainname isn't RFC1035 compliant. Also ensure that the length <=
YPMAXDOMAIN (which is less than what RFC1035 allows).
* use _yp_invalid_domain in the public front-ends, instead of using
hand-rolled checks
* fix a typo
 1.27  23-Jan-1997  mrg - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.26  21-Jan-1997  thorpej Use a different timeout for the underlying RPC transmission than the
upper-level YP call. This allows the RPC code to retry the transaction,
which is helpful for busy networks.

Problem noted and suggested fix from Michael.Eriksson@era-t.ericsson.se,
and slightly modified by me to compute the RPC timeout one at compile-time,
rather than N times at run-time.

Fixes PR #3117.
 1.25  24-Dec-1996  christos Report yp errors every _yplib_nerrs like the other routines.
 1.24  29-May-1996  thorpej branches: 1.24.2;
Pull down yp/xdr fixes from release branch.
 1.23  23-May-1996  christos Avoid using clnt_perror() on the first rpc failure, since it is going to be
retried anyway. Only report it every _yplib_nerrs times.
 1.22  18-May-1996  jtc branches: 1.22.4;
Split yp_first, yp_next, yp_maplist and yperr_prot out of yplib.c.
Use a constant struct timeval for yp timeouts instead of creating
a new struct timeval in each yp function at runtime.
 1.21  15-May-1996  jtc Split yperr_match out of yplib.c; makes many static executables a bit smaller.
 1.20  14-May-1996  jtc Split yp_all, yp_master, and yp_other out of yplib.c; makes some static
executables a bit smaller.
 1.19  14-May-1996  jtc Split yperr_string out of yplib.c; makes many static executables a bit smaller.
 1.18  09-May-1996  christos Fix PR/2348: infinite loop when RPC_PROCUNAVAIL
 1.17  04-Feb-1996  jtc Change conditionals around RCS IDs to be like rest of libc.
From John Birrell <jb@cimlogic.com.au>.
 1.16  14-Jul-1995  christos - Const poisoning
- KNF police
- Detect malloc failures
 1.15  03-Jun-1995  mycroft Fill in sin_len.
 1.14  27-Feb-1995  cgd clean up Ids
 1.13  28-Sep-1994  deraadt branches: 1.13.2;
check for ypbind.lock file, which indicates yp is alive.
 1.12  20-Sep-1994  deraadt don't print a "not responding" message for first failure.
 1.11  18-Sep-1994  deraadt If the binding file doesn't exist, we need to try RPC to ypbind
to wake it up. This probably fixes my problem with amd.
 1.10  18-Aug-1994  mycroft branches: 1.10.2;
Kill some totally minor ugliness that crept in.
 1.9  06-Aug-1994  jtc Post 1.0 cleanup:
* Include appropriate header files to bring prototypes into scope.
* bcopy -> memcpy
* bzero -> memset
* bcmp -> memcmp
* Tweak yp xdr routines so compiler can do a better job --- saves
at least 5 instructions per function call on the i386.
 1.8  25-May-1994  deraadt correct copyright
 1.7  03-Dec-1993  deraadt sunos compatible /var/yp/binding/ files.
fix const warning
 1.6  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.5  24-Jul-1993  deraadt new header files are more ansi-like
 1.4  12-Jun-1993  deraadt branches: 1.4.2;
a few typecasts because of the new prototypes
 1.3  16-May-1993  deraadt added my copyright.. how self efacing of me
 1.2  27-Apr-1993  deraadt YP functions are always in libc. They just might not be called by getpwent()
and friends.
 1.1  26-Apr-1993  deraadt parts of YP inside libc..
 1.4.2.1  27-Jul-1993  cgd changes from theo that are in the main tree that must go in for 0.9.
 1.10.2.2  18-Aug-1994  mycroft Kill some totally minor ugliness that crept in.
 1.10.2.1  18-Aug-1994  mycroft file yplib.c was added on branch netbsd-1-0 on 1994-08-18 00:45:08 +0000
 1.13.2.1  02-May-1995  jtc #include "namespace.h"
 1.22.4.2  03-Feb-1997  rat Pullup 1.24 -> 1.26 by request from Jason Thorpe.
 1.22.4.1  26-May-1996  jtc yp/xdr fixes from Jason Thorpe
 1.24.2.1  17-Sep-1996  jtc snapshot namespace cleanup: yp
 1.37.2.1  10-Dec-2002  thorpej Sync with HEAD.
 1.43.42.1  17-Apr-2012  yamt sync with head

RSS XML Feed