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
0001127 [1003.1(2013)/Issue7+TC1] Base Definitions and Headers Editorial Clarification Requested 2017-03-15 21:36 2017-03-16 02:46
Reporter jsm28 View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Joseph Myers
Organization
User Reference
Section sys/socket.h
Page Number 389
Line Number 13239
Interp Status ---
Final Accepted Text
Summary 0001127: sys/socket.h inclusion of sys/uio.h
Description The sys/socket.h specification says "The <sys/socket.h> header shall define the iovec structure as described in <sys/uio.h>." and "Inclusion of <sys/socket.h> may also make visible all symbols from <sys/uio.h>.".

These statements (and the use of the iovec structure) are not XSI-shaded. However, the whole of sys/uio.h is XSI-shaded. Thus, when <sys/socket.h> is included in the non-XSI case (_POSIX_C_SOURCE=200809L), may declarations become visible of readv, writev and the symbols listed (also XSI-shaded) as reserved when <sys/uio.h> is included in XSH 2.2.2 The Name Space, or only of the iovec structure and its contents?
Desired Action Clarify what may be visible when a non-XSI-shaded header is permitted to make visible symbols from an XSI-shaded header, or eliminate such permissions from the standard.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0003615)
shware_systems (reporter)
2017-03-16 02:46

Something XSI shaded need not be present in a header on a non-XSI system, but the names are reserved whether present or not, as explained in XSH 2.2.1.1 as "permitted symbols". Still, as msghdr in <sockets.h> uses the iovec type I believe this effectively moves it to the Base from XSI, so I agree there should be clarification it may need to be declared in <socket.h>, not just defined via #include, if the <uio.h> header is not available. How the msghdr related interfaces make use of those fields isn't really dependent on the <uio.h> interfaces, that I see, it's just the type sufficiently serves the purpose of tracking out of order packets in a message.

- Issue History
Date Modified Username Field Change
2017-03-15 21:36 jsm28 New Issue
2017-03-15 21:36 jsm28 Name => Joseph Myers
2017-03-15 21:36 jsm28 Section => sys/socket.h
2017-03-15 21:36 jsm28 Page Number => 389
2017-03-15 21:36 jsm28 Line Number => 13239
2017-03-16 02:46 shware_systems Note Added: 0003615


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