NetBSD Problem Report #34168

From www@NetBSD.org  Tue Aug  8 23:43:47 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 3118F63B8C3; Tue,  8 Aug 2006 23:43:47 +0000 (UTC)
Message-Id: <20060808234347.3118F63B8C3@narn.NetBSD.org>
Date: Tue,  8 Aug 2006 23:43:47 +0000 (UTC)
From: lha@netbsd.org
Reply-To: lha@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: getnameinfo prototype doesn't match SUS3
X-Send-Pr-Version: www-1.0

>Number:         34168
>Category:       lib
>Synopsis:       getnameinfo prototype doesn't match SUS3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 08 23:45:00 +0000 2006
>Closed-Date:    Fri Feb 23 02:46:43 +0000 2024
>Last-Modified:  Fri Feb 23 02:46:43 +0000 2024
>Originator:     Love Hornquist Astrand
>Release:        netbsd current
>Organization:
>Environment:
inspection
>Description:
http://www.opengroup.org/onlinepubs/009695399/functions/getnameinfo.html

say that the nodelen and servicelen are socklen_t, that isn't true for netbsd.

Are the ABI problems in changing this ?

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: lib/34168: getnameinfo prototype doesn't match SUS3 
Date: Wed, 09 Aug 2006 15:59:27 +0200

 lha@NetBSD.org said:
 > nodelen and servicelen are socklen_t

 This looks like a bug or at least an inconsistency in SUSv3.
 node and service are strings, not sockaddr or so.
 RFC2553 says "size_t", as does every other OS I know.

 > Are the ABI problems

 Yes, on 64-bit systems.

 > in changing this ?

 I wouldn't bother.

 best regards
 Matthias


From: =?ISO-8859-1?Q?Love_H=F6rnquist_=C5strand?= <lha@kth.se>
To: Matthias Drochner <M.Drochner@fz-juelich.de>,
	gnats-bugs@NetBSD.org, lib-bug-people@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: lib/34168
Date: Wed, 30 Aug 2006 13:40:09 +0200

 Some upcoming release of a fruitcompany operatingsystem doesn't agree  
 with you.


State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 23 Feb 2024 02:46:43 +0000
State-Changed-Why:
nodelen and servicelen were made socklen_t back in 2002, in
netdb.h 1.24 and getnameinfo.c 1.36

https://mail-index.netbsd.org/source-changes/2002/05/14/msg103820.html


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.