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 |
2021-01-29 11:30 |
|
Reporter |
geoffclare |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Applied |
|
|
|
|
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 |
tc3-2008 |
|
Attached Files |
|
|