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
0001359 [Issue 8 drafts] System Interfaces Comment Error 2020-06-30 15:14 2020-06-30 15:15
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Open  
Status New   Product Version Draft 1
Name Geoff Clare
Organization The Open Group
User Reference
Section dirfd()
Page Number 712
Line Number 24548
Final Accepted Text
Summary 0001359: dirfd() rationale out of date
Description Bug 0000391 made changes to the normative text for dirfd() but did not update the RATIONALE to match.
Desired Action Change:
The description uses the term ``a file descriptor'' rather than ``the file descriptor''. The implication intended is that an implementation that does not use an fd for opendir() could still open() the directory to implement the dirfd() function. Such a descriptor must be closed later during a call to closedir().

If it is necessary to allocate an fd to be returned by dirfd(), it should be done at the time of a call to opendir().
to:
On an implementation where reading from a directory stream does not use a file descriptor, opendir() need not allocate one to be returned by dirfd(). The implementation can instead delay the allocation of a suitable file descriptor until the first time dirfd() is called for the stream. A file descriptor allocated by dirfd() must be closed by closedir().

Tags No tags attached.
Attached Files

- Relationships
related to 0000391Appliedajosey 1003.1(2008)/Issue 7 ENOTSUP should not be a valid error for dirfd() 
related to 0001360New Issue 8 drafts opendir() file descriptor requirements 

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2020-06-30 15:14 geoffclare New Issue
2020-06-30 15:14 geoffclare Name => Geoff Clare
2020-06-30 15:14 geoffclare Organization => The Open Group
2020-06-30 15:14 geoffclare Section => dirfd()
2020-06-30 15:14 geoffclare Page Number => 712
2020-06-30 15:14 geoffclare Line Number => 24548
2020-06-30 15:15 geoffclare Relationship added related to 0000391
2020-07-01 15:59 geoffclare Relationship added related to 0001360


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