View Issue Details

IDProjectCategoryView StatusLast Update
00012901003.1(2016/18)/Issue7+TC2Base Definitions and Headerspublic2024-06-11 09:08
Reporterjoelsherrill Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameJoel Sherrill
OrganizationRTEMS.org
User Reference
Sectionarpa/inet.h
Page NumberNA - used web
Line NumberNA - used web
Interp StatusApproved
Final Accepted TextSee 0001290:0004615
Summary0001290: arpa/inet.h - origin of socklen_t is unclear
DescriptionRef: 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 ActionClarify the source of socklen_t.
Tagstc3-2008

Relationships

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

Activities

nick

2019-10-07 15:46

manager   bugnote:0004615

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>.

agadmin

2019-12-12 17:32

administrator   bugnote:0004685

Interpretation proposed: 12 Dec 2019

dennisw

2019-12-18 18:59

reporter   bugnote:0004690

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.

agadmin

2020-01-14 16:23

administrator   bugnote:0004729

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 0001290: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
2024-06-11 09:08 agadmin Status Applied => Closed