View Issue Details

IDProjectCategoryView StatusLast Update
00013851003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:08
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionunlink()
Page Number2197
Line Number70220
Interp Status---
Final Accepted Text
Summary0001385: unlink() text needs updating to account for mmap()
DescriptionThe mmap() description says:
The mmap() function shall add an extra reference to the file associated with the file descriptor fildes which is not removed by a subsequent close() on that file descriptor. This reference shall be removed when there are no more mappings to the file.
I believe the intention of this is that when unlink() removes the last link to the file, the space it occupies is not freed until no process has the file open and no process has it mapped. However, this is not reflected in the description of unlink(), which only refers to processes having the file open.
Desired ActionChange:
When the file's link count becomes 0 and no process has the file open, the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have the file open when the last link is removed, the link shall be removed before unlink() returns, but the removal of the file contents shall be postponed until all references to the file are closed.
to:
When the file's link count becomes 0 and no process has a reference to the file via an open file descriptor or a memory mapping (see [xref to mmap()]), the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have such a reference to the file when the last link is removed, the link shall be removed before unlink() returns, but the removal of the file contents shall be postponed until there are no such references to the file.

Tagstc3-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-29 10:44 geoffclare New Issue
2020-07-29 10:44 geoffclare Name => Geoff Clare
2020-07-29 10:44 geoffclare Organization => The Open Group
2020-07-29 10:44 geoffclare Section => unlink()
2020-07-29 10:44 geoffclare Page Number => 2197
2020-07-29 10:44 geoffclare Line Number => 70220
2020-07-29 10:44 geoffclare Interp Status => ---
2021-01-11 16:50 Don Cragun Status New => Resolved
2021-01-11 16:50 Don Cragun Resolution Open => Accepted
2021-01-11 16:50 Don Cragun Tag Attached: tc3-2008
2021-01-29 11:30 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed