Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Klaus Klein <kleink@netbsd.org>
List: source-changes
Date: 05/08/2004 18:52:15
Module Name:	src
Committed By:	kleink
Date:		Sat May  8 18:52:15 UTC 2004

Modified Files:
	src/include: netdb.h
	src/lib/libc: shlib_version
	src/lib/libc/net: getnetent.3 getnetent.c getnetnamadr.c

Log Message:
struct netnet.n_net used to be an unsigned long integer.

In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.

To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness.  Fixes PR
standards/21411 from Ben Harris.

This should be deleted the next time the libc major number is
incremented.

Also, update getnetbyaddr(3)'s `net' argument accordingly.


To generate a diff of this commit:
cvs rdiff -r1.36 -r1.37 src/include/netdb.h
cvs rdiff -r1.151 -r1.152 src/lib/libc/shlib_version
cvs rdiff -r1.12 -r1.13 src/lib/libc/net/getnetent.3
cvs rdiff -r1.15 -r1.16 src/lib/libc/net/getnetent.c
cvs rdiff -r1.28 -r1.29 src/lib/libc/net/getnetnamadr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.