Anonymous | Login | 2024-12-12 14:56 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 | ||
0001169 | [1003.1(2016/18)/Issue7+TC2] System Interfaces | Objection | Clarification Requested | 2017-11-10 15:19 | 2024-06-11 09:09 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | ftruncate() | ||||||
Page Number | 980 | ||||||
Line Number | 33327 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0001169: Redundant statement that ftruncate() fails on directories | ||||||
Description |
The ftruncate() description says:If fildes refers to a directory, ftruncate() shall fail. This statement is redundant because directories can't be opened for writing and there is already an error specified for file descriptors that are not open for writing. The presence of the statement just causes confusion as to what value errno can be set to when both of the conditions "fildes refers to a directory" and "fildes is not open for writing" are true (since the former does not appear in the ERRORS section). |
||||||
Desired Action |
Change:If fildes refers to a directory, ftruncate() shall fail.to: If fildes is a file descriptor open for writing and refers to a file that is neither a regular file nor a shared memory object, the result is unspecified. |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |