Anonymous | Login | 2024-09-16 23:29 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000695 | [1003.1(2008)/Issue 7] System Interfaces | Editorial | Clarification Requested | 2013-05-12 04:08 | 2024-06-11 08:52 | ||
Reporter | dalias | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Closed | ||||||
Name | Rich Felker | ||||||
Organization | musl libc | ||||||
User Reference | |||||||
Section | XSH 2.9.7 Thread Interactions with Regular File Operations | ||||||
Page Number | unknown | ||||||
Line Number | unknown | ||||||
Interp Status | --- | ||||||
Final Accepted Text | Note: 0005934 | ||||||
Summary | 0000695: Missing/lax atomicity requirements for file operations | ||||||
Description |
XSH 2.9.7 guarantees atomicity of most operations on file descriptors, but only when they refer to regular files. I suspect the main situation in which it was desired to leave atomicity unspecified was for actual input and output on non-regular files. However, this leaves ambiguous several potentially-important cases such as: - Atomicity of ftruncate on shared memory objects. - Atomicity of dup2 and fcntl F_DUPFD[_CLOEXEC]. - Atomicity of F_SETOWN on sockets. - Atomicity of ownership/permissions changes on non-regular files. |
||||||
Desired Action |
Provide a reasonable degree of atomicity requirements for file operations consistent with present real-world implementations, preferably enumerating the non-atomic cases rather than the atomic ones. Document that, even in the case where file operations are not atomic, concurrent access does not result in undefined behavior, but may result in data interleaving (and possibly data loss if it's deemed important to leave that possibility open as well). |
||||||
Tags | issue8 | ||||||
Attached Files | |||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2013-05-12 04:08 | dalias | New Issue | |
2013-05-12 04:08 | dalias | Status | New => Under Review |
2013-05-12 04:08 | dalias | Assigned To | => ajosey |
2013-05-12 04:08 | dalias | Name | => Rich Felker |
2013-05-12 04:08 | dalias | Organization | => musl libc |
2013-05-12 04:08 | dalias | Section | => XSH 2.9.7 Thread Interactions with Regular File Operations |
2013-05-12 04:08 | dalias | Page Number | => unknown |
2013-05-12 04:08 | dalias | Line Number | => unknown |
2022-08-18 15:49 | geoffclare | Note Added: 0005934 | |
2022-08-18 15:50 | geoffclare | Interp Status | => --- |
2022-08-18 15:50 | geoffclare | Final Accepted Text | => Note: 0005934 |
2022-08-18 15:50 | geoffclare | Status | Under Review => Resolved |
2022-08-18 15:50 | geoffclare | Resolution | Open => Accepted As Marked |
2022-08-18 15:50 | geoffclare | Tag Attached: issue8 | |
2022-10-21 09:17 | geoffclare | Status | Resolved => Applied |
2024-06-11 08:52 | agadmin | Status | Applied => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |