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
0001385 [1003.1(2016/18)/Issue7+TC2] System Interfaces Objection Error 2020-07-29 10:44 2020-07-29 10:44
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Geoff Clare
Organization The Open Group
User Reference
Section unlink()
Page Number 2197
Line Number 70220
Interp Status ---
Final Accepted Text
Summary 0001385: unlink() text needs updating to account for mmap()
Description The 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 Action Change:
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.

Tags No tags attached.
Attached Files

- Relationships

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 => ---


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