History log of /netbsd/lib/libc/yp/yplib.c (Results 1 – 25 of 46)
Revision Date Author Comments
# 2c32905e 18-Sep-2014 christos <christos@NetBSD.org>

make more descriptors that we open as close-on-exec


# 09b3a259 20-Mar-2012 matt <matt@NetBSD.org>

Convert to use C89 prototypes.
Remove use of __P


# 39637807 02-Mar-2012 christos <christos@NetBSD.org>

PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
don't hang forever if requested.


# 95c7627c 03-Nov-2006 christos <christos@NetBSD.org>

use FD_CLOEXEC instead of 1.


# c49e8087 29-Oct-2004 lukem <lukem@NetBSD.org>

#include "reentrant.h" instead of <threadlib.h>


# 04562cac 27-May-2004 christos <christos@NetBSD.org>

add a simple lock in _yp_check(), to make it re-entrant.


# 7db1d33c 10-Dec-2003 agc <agc@NetBSD.org>

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 b

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.

show more ...


# 9134efab 17-Nov-2002 itojun <itojun@NetBSD.org>

use strlcpy where it is more appropriate.


# ff64706c 11-Nov-2002 thorpej <thorpej@NetBSD.org>

Fix signed/unsigned comparison warnings.


# 473ea2c4 06-Jul-2000 christos <christos@NetBSD.org>

add explicit casts to avoid parameter conversion warnings.


# 60549036 22-Jan-2000 mycroft <mycroft@NetBSD.org>

Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* 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 attemp

* 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

show more ...


# b2a14ab2 31-Jan-1999 christos <christos@NetBSD.org>

xdrproc_t casts


# 780ffacd 27-Jul-1998 mycroft <mycroft@NetBSD.org>

Remove a little lint.


# 23d6c4fa 23-Jul-1997 lukem <lukem@NetBSD.org>

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.


# 43fa6fe3 21-Jul-1997 jtc <jtc@NetBSD.org>

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

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>.

show more ...


# e7cc5503 13-Jul-1997 christos <christos@NetBSD.org>

Fix RCSID's
printf -> warnx
Fix gcc warnings
Put locally declared functions in local.h


# 42736edb 07-Jul-1997 lukem <lukem@NetBSD.org>

* 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

* 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

show more ...


# 9cd5492c 23-Jan-1997 mrg <mrg@NetBSD.org>

- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.


# ac6352fd 21-Jan-1997 thorpej <thorpej@NetBSD.org>

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 su

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.

show more ...


# 772697e2 24-Dec-1996 christos <christos@NetBSD.org>

Report yp errors every _yplib_nerrs like the other routines.


# 7a26f6a8 29-May-1996 thorpej <thorpej@NetBSD.org>

Pull down yp/xdr fixes from release branch.


# 409a9590 23-May-1996 christos <christos@NetBSD.org>

Avoid using clnt_perror() on the first rpc failure, since it is going to be
retried anyway. Only report it every _yplib_nerrs times.


# 76bf46a3 18-May-1996 jtc <jtc@NetBSD.org>

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.


12