Email List: Xaustin-review-lX
[All Lists]

Defect in XBD arpa/inet.h - definitions for internet operations

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XBD arpa/inet.h - definitions for internet operations
From: yyyyyyyyyyyyy@xxxxxxx
Date: Fri, 3 Oct 2003 20:08:52 +0100 (BST)
        Defect report from : Glenn Lagasse , Sun Microsystems, Inc.

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 258 line 0 section arpa/inet.h - definitions for internet operations 
comment {gl-00001}

Problem:

Edition of Specification (Year): 2003

Defect code :  3. Clarification required

The arpa/inet.h header definition does not provide a provision for specifically 
including the sys/socket.h header file.  Since the function prototype for 
inet_ntop() has the last parameter type defined as socklen_t (which is 
TYPEDEF'd in sys/socket.h).  This would appear to be an ommision on the part of 
the specification that needs to be addressed to prevent cries of name space 
pollution.  Interestingly, the current testsuite does not point out a possible 
name space pollution when sys/socket.h is included in arpa/inet.h which lends 
more credence to this being an oversight in the specification imho.

Action:

Specifically mention/allow the inclusion of sys/socket.h in the arpa/inet.h 
header.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XBD arpa/inet.h - definitions for internet operations, glenn.lagasse <=