View Issue Details

IDProjectCategoryView StatusLast Update
0001359Issue 8 draftsSystem Interfacespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityCommentTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 1 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectiondirfd()
Page Number712
Line Number24548
Final Accepted Text
Summary0001359: dirfd() rationale out of date
DescriptionBug 0000391 made changes to the normative text for dirfd() but did not update the RATIONALE to match.
Desired ActionChange:
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().

Tagsissue8

Relationships

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

Activities

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
2020-09-10 15:44 Don Cragun Status New => Resolved
2020-09-10 15:44 Don Cragun Resolution Open => Accepted
2020-09-10 15:45 Don Cragun Tag Attached: issue8
2020-09-16 15:16 geoffclare Status Resolved => Applied
2024-06-11 09:12 agadmin Status Applied => Closed