Home | History | Annotate | Download | only in yp
History log of /src/lib/libc/yp/xdryp.c
RevisionDateAuthorComments
 1.32  20-Mar-2012  matt Convert to use C89 prototypes.
Remove use of __P
 1.31  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.30  11-May-2006  mrg branches: 1.30.44;
xdr sucks. sprinkle some (void *) casts into it's functions taking void **,
and shut up GCC4.
 1.29  29-Nov-2005  christos WARNS=4
 1.28  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.27  04-Dec-2003  keihan netbsd.org -> NetBSD.org
NetBSD.ORG -> NetBSD.org

Now src/lib is done.
 1.26  29-May-2003  christos de-lint pointer casts.
 1.25  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.24  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.23  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.22  31-Jan-1999  christos xdrproc_t casts
 1.21  15-Nov-1998  christos delint
 1.20  04-Nov-1997  thorpej __warn_references and __indr_reference semicolon fixups. From
Chris Demetriou <cgd@pa.dec.com>.
 1.19  20-Oct-1997  thorpej branches: 1.19.2;
Fix the shared library versioning snafu caused by the recent changes
to the stat(2) family and msync(2). This uses a primitive function
versioning scheme.

This reverts the libc shared library major version from 13 to 12, and
adds a few new interfaces to bring us to libc version 12.20.

From Frank van der Linden <fvdl@NetBSD.ORG>.
 1.18  16-Oct-1997  christos Remove obsolete functions
 1.17  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.16  13-Jul-1997  christos Fix RCSID's
printf -> warnx
Fix gcc warnings
Put locally declared functions in local.h
 1.15  15-Aug-1996  chuck branches: 1.15.2;
fix xdr_ypmap_parms (missing "&"'s in calls to xdr_ypdomain_wrap_string
and xdr_ypmap_wrap_string). prevents segv in ypserv.
 1.14  09-Aug-1996  thorpej Fix some potential type-size problems.
 1.13  18-Jun-1996  christos ypset(8) stopped working; reason:

xdr_ypbind_setdom() would always fail because the test for
xdr_ypdomain_wrap_string() was reversed. Fixed this and in
the process made all the function tests to be of the form:

if (!xdr_foo())
return FALSE;
....
return TRUE;

instead of having some of them like above and others like:
if (xdr_foo() == FALSE)
return FALSE;
...

return xdr_bar();

this is more consistant now and hopefully in the future people
will pattern match correctly and not introduce spurious errors.
 1.12  29-May-1996  thorpej Pull down yp/xdr fixes from release branch.
 1.11  14-May-1996  jtc branches: 1.11.4;
Split yp_all, yp_master, and yp_other out of yplib.c; makes some static
executables a bit smaller.
 1.10  04-Feb-1996  jtc Change conditionals around RCS IDs to be like rest of libc.
From John Birrell <jb@cimlogic.com.au>.
 1.9  14-Jul-1995  christos - Const poisoning
- KNF police
- Detect malloc failures
 1.8  27-Feb-1995  cgd clean up Ids
 1.7  06-Aug-1994  jtc branches: 1.7.2;
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.6  25-May-1994  deraadt correct copyright
 1.5  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.4  12-Jun-1993  deraadt 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.7.2.2  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.7.2.1  06-Aug-1994  jtc file xdryp.c was added on branch netbsd-1-0 on 1994-08-06 23:07:48 +0000
 1.11.4.4  02-Mar-1997  mycroft Pull up missing type size fixes from trunk.
 1.11.4.3  03-Feb-1997  rat Pullup 1.14 -> 1.15 by request from Jason Thorpe.
Fix xdr_ypmap_parms (missing "&"'s in calls to xdr_ypdomain_wrap_string
and xdr_ypmap_wrap_string). Prevents segv in ypserv.
 1.11.4.2  19-Jun-1996  jtc pulled up from revision 1.13 by christos' request
 1.11.4.1  26-May-1996  jtc yp/xdr fixes from Jason Thorpe
 1.15.2.1  17-Sep-1996  jtc snapshot namespace cleanup: yp
 1.19.2.1  04-Nov-1997  thorpej Pull up from trunk: __warn_references and __indr_reference semicolon fixups.
 1.30.44.1  17-Apr-2012  yamt sync with head

RSS XML Feed