A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1830 ====================================================================== Reported By: lacos Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1830 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: László Érsek Organization: User Reference: Section: pwrite, write Page Number: ? Line Number: ? Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-05-03 06:55 UTC Last Modified: 2024-05-19 10:20 UTC ====================================================================== Summary: off-by-one error regarding offset maximum ======================================================================
---------------------------------------------------------------------- (0006784) lacos (reporter) - 2024-05-19 10:20 https://www.austingroupbugs.net/view.php?id=1830#c6784 ---------------------------------------------------------------------- The proposed update entirely clarifies the requirement for write(), however I think it applies less to pwrite() than before, because pwrite() does not change the file offset at all. (In retrospect, I suspect the original "data transfer [...] past the offset maximum" language may have specifically aimed at covering pwrite() at the same time as write().) Can we perhaps use semi-formal syntax, such as: "For regular files, no data transfer shall occur such that, using zero-based byte offsets, /byte[offmax]/ of the file, or any byte thereafter, be overwritten, where offmax is the offset maximum established in the open file description associated with fildes." Issue History Date Modified Username Field Change ====================================================================== 2024-05-03 06:55 lacos New Issue 2024-05-03 06:55 lacos Name => László Érsek 2024-05-03 06:55 lacos Section => pwrite, write 2024-05-03 06:55 lacos Page Number => ? 2024-05-03 06:55 lacos Line Number => ? 2024-05-13 09:10 geoffclare Note Added: 0006778 2024-05-19 10:20 lacos Note Added: 0006784 ======================================================================