Subject: CVS commit: [netbsd-2] src/lib/libc/net
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 07/05/2005 18:34:30
Module Name:	src
Committed By:	riz
Date:		Tue Jul  5 18:34:30 UTC 2005

Modified Files:
	src/lib/libc/net [netbsd-2]: getnetent.c

Log Message:
Pull up revision 1.16 (requested by kleink in ticket #2015):
struct netent.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.15 -r1.15.4.1 src/lib/libc/net/getnetent.c

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