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
0000598 [1003.1(2008)/Issue 7] System Interfaces Objection Omission 2012-08-08 13:22 2012-08-08 13:23
Reporter eblake View Status public  
Assigned To ajosey
Priority normal Resolution Open  
Status Under Review  
Name Eric Blake
Organization Red Hat
User Reference ebb.OH
Section mkdtemp
Page Number 1292
Line Number 42417
Interp Status ---
Final Accepted Text
Summary 0000598: OH shading and new interfaces
Description 0000411 proposed several new interfaces that use constants not currently provided by the header that the interface is declared in. These new interfaces either need to use OH shading (see 0000591) or the headers for these interfaces need alteration to become self-contained (see 0000593).

The desired action takes the approach of using OH shading. This was done in part to avoid conflicts with 0000593; even though the solution for that bug proposes exposing several O_* constants under XSI shading, mkostemp was proposed for CX shading and needs even more constants.

An alternative action would be to make <stdlib.h> self-contained under CX shading rather than just XSI, and to make <unistd.h> self-contained and permitted to leak symbols from <fcntl.h>. Taken to an extreme, this solution would also suggest making AT_FDCWD and friends exposed in all headers that use the *at interfaces, and getting rid of OH shading altogether in Issue 8 (basically, undoing the TC2 changes of 0000591 by instead making all headers self-contained). As this change would be more invasive, I did not attempt to enumerate the changes required, unless the group feels this is a better direction to head for Issue 8.
Desired Action Drop these changes from 0000411:

After line 24867 [XSH dup SYNOPSIS], add a line:
int dup3(int fildes, int fildes2, int flag);

After line 42416 [XSH mkdtemp SYNOPSIS], add a line:
int mkostemp (char *template, int flag);

and replace them with these changes instead:

After line 24867 [XSH dup SYNOPSIS], add two lines, shaded as follows:
<OH>#include <fcntl.h></OH>
int dup3(int fildes, int fildes2, int flag);

After line 42417 [XSH mkdtemp SYNOPSIS], add two lines, shaded as follows:
<OH>#include <fcntl.h></OH>
<CX>int mkostemp (char *template, int flag);</CX>
Tags No tags attached.
Attached Files

- Relationships
related to 0000593Appliedajosey posix_typed_mem_open requires the use of <fcntl.h> 
child of 0000411Appliedajosey adding atomic FD_CLOEXEC support 
child of 0000591Closedajosey No reason for OH margins in the synopses of open and creat 

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-08-08 13:22 eblake New Issue
2012-08-08 13:22 eblake Status New => Under Review
2012-08-08 13:22 eblake Assigned To => ajosey
2012-08-08 13:22 eblake Name => Eric Blake
2012-08-08 13:22 eblake Organization => Red Hat
2012-08-08 13:22 eblake User Reference => ebb.OH
2012-08-08 13:22 eblake Section => mkdtemp
2012-08-08 13:22 eblake Page Number => 1292
2012-08-08 13:22 eblake Line Number => 42417
2012-08-08 13:22 eblake Interp Status => ---
2012-08-08 13:23 eblake Relationship added child of 0000411
2012-08-08 13:23 eblake Relationship added child of 0000591
2012-08-08 13:23 eblake Relationship added related to 0000593
2012-08-08 13:23 eblake Description Updated
2012-08-08 13:24 eblake Tag Attached: issue8
2019-05-23 16:09 geoffclare Tag Detached: issue8

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