Austin Group Defect Tracker

Aardvark Mark III

Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001290 [1003.1(2016)/Issue7+TC2] Base Definitions and Headers Editorial Clarification Requested 2019-09-27 19:20 2019-12-12 17:32
Reporter joelsherrill View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Interpretation Required  
Name Joel Sherrill
User Reference
Section arpa/inet.h
Page Number NA - used web
Line Number NA - used web
Interp Status Proposed
Final Accepted Text See Note: 0004615
Summary 0001290: arpa/inet.h - origin of socklen_t is unclear
Description Ref: [^]

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
related to 0001289Applied netdb.h - in_port_t and in_addr_t do not appear to be needed 

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

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


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 (administrator)
2019-12-12 17:32

Interpretation proposed: 12 Dec 2019

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

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