From owner-cvs-src@FreeBSD.ORG Sun May 29 10:21:39 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36AC816A41C; Sun, 29 May 2005 10:21:39 +0000 (GMT) (envelope-from ume@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1106243D1D; Sun, 29 May 2005 10:21:39 +0000 (GMT) (envelope-from ume@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4TALcBa081354; Sun, 29 May 2005 10:21:38 GMT (envelope-from ume@repoman.freebsd.org) Received: (from ume@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4TALchw081353; Sun, 29 May 2005 10:21:38 GMT (envelope-from ume) Message-Id: <200505291021.j4TALchw081353@repoman.freebsd.org> From: Hajimu UMEMOTO Date: Sun, 29 May 2005 10:21:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/include netdb.h src/lib/libc/net getaddrinfo.c getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c netdb_private.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2005 10:21:39 -0000 ume 2005-05-29 10:21:38 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) include netdb.h lib/libc/net getaddrinfo.c getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c netdb_private.h Log: MFC: The ai_addrlen of a struct addrinfo used to be a size_t, per RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. include/netdb.h: 1.36 (partly) lib/libc/net/getaddrinfo.c: 1.69 lib/libc/net/getnetbydns.c: 1.30 lib/libc/net/getnetbyht.c: 1.15 lib/libc/net/getnetbynis.c: 1.18 lib/libc/net/getnetnamadr.c: 1.20 (partly) lib/libc/net/netdb_private.h: 1.9 Revision Changes Path 1.32.2.3 +41 -4 src/include/netdb.h 1.52.2.12 +4 -1 src/lib/libc/net/getaddrinfo.c 1.28.2.2 +12 -8 src/lib/libc/net/getnetbydns.c 1.10.8.4 +5 -2 src/lib/libc/net/getnetbyht.c 1.15.8.2 +7 -4 src/lib/libc/net/getnetbynis.c 1.17.6.3 +3 -2 src/lib/libc/net/getnetnamadr.c 1.9.2.7 +1 -7 src/lib/libc/net/netdb_private.h