Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001290 [1003.1(2016/18)/Issue7+TC2] Base Definitions and Headers Editorial Clarification Requested 2019-09-27 19:20 2020-02-26 11:43
Reporter joelsherrill View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Applied  
Name Joel Sherrill
Organization RTEMS.org
User Reference
Section arpa/inet.h
Page Number NA - used web
Line Number NA - used web
Interp Status Approved
Final Accepted Text See Note: 0004615
Summary 0001290: arpa/inet.h - origin of socklen_t is unclear
Description Ref: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html [^]

In arpa/inet.h, socklen_t is used as an argument to inet_ntop()
but you have to pull a thread to figure out how it is defined
based on the single include file in the Synopsis. The thread for
.h files is arpa/inet.h -> netinet/in.h -> sys/socket.h.

Desired Action Clarify the source of socklen_t.
Tags tc3-2008
Attached Files

- Relationships
has duplicate 0000606Closedajosey 1003.1(2008)/Issue 7 <arpa/inet.h> should be required to define socklen_t 
related to 0001289Applied 1003.1(2016/18)/Issue7+TC2 netdb.h - in_port_t and in_addr_t do not appear to be needed 

-  Notes
(0004615)
nick (manager)
2019-10-07 15:46

Interpretation response
------------------------
The standard states that it is not required to define the socklen_t type in this header, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.

Rationale:
-------------
The standard permits but does not require the inclusion of the relevant headers to get socklen_t defined, and without this applications could not compile.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

Change P222 lines 7468-7469 from

The <arpa/inet.h> header shall define the in_port_t and in_addr_t types as described in <netinet/in.h>.

to

The <arpa/inet.h> header shall define the in_port_t and in_addr_t types as described in <netinet/in.h> and the socklen_t type as defined in <sys/socket.h>.
(0004685)
agadmin (administrator)
2019-12-12 17:32

Interpretation proposed: 12 Dec 2019
(0004690)
dennisw (reporter)
2019-12-18 18:59

I just noticed that the same issue was already reported in 0000606. However that bug was tagged for issue8 which is why it was not fixed in a TC.
I think 0000606 should be closed as a duplicate of this bug.
(0004729)
agadmin (administrator)
2020-01-14 16:23

Interpretation Approved: 14 Jan 2020

- Issue History
Date Modified Username Field Change
2019-09-27 19:20 joelsherrill New Issue
2019-09-27 19:20 joelsherrill Name => Joel Sherrill
2019-09-27 19:20 joelsherrill Organization => RTEMS.org
2019-09-27 19:20 joelsherrill Section => arpa/inet.h
2019-09-27 19:20 joelsherrill Page Number => NA - used web
2019-09-27 19:20 joelsherrill Line Number => NA - used web
2019-10-07 15:39 eblake Relationship added related to 0001289
2019-10-07 15:46 nick Note Added: 0004615
2019-10-07 15:47 nick Interp Status => Pending
2019-10-07 15:47 nick Final Accepted Text => See Note: 0004615
2019-10-07 15:47 nick Status New => Interpretation Required
2019-10-07 15:47 nick Resolution Open => Accepted As Marked
2019-10-07 15:48 nick Tag Attached: tc3-2008
2019-12-12 17:32 agadmin Interp Status Pending => Proposed
2019-12-12 17:32 agadmin Note Added: 0004685
2019-12-18 18:59 dennisw Note Added: 0004690
2019-12-18 19:39 Don Cragun Relationship added related to 0000606
2019-12-19 16:12 geoffclare Relationship replaced has duplicate 0000606
2020-01-14 16:23 agadmin Interp Status Proposed => Approved
2020-01-14 16:23 agadmin Note Added: 0004729
2020-02-26 11:43 geoffclare Status Interpretation Required => Applied


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker