Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0001882 |
[1003.1(2024)/Issue8] System Interfaces |
Comment |
Error |
2024-12-03 16:36 |
2024-12-05 16:50 |
|
Reporter |
geoffclare |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Resolved |
|
|
|
|
Name |
Geoff Clare |
Organization |
The Open Group |
User Reference |
|
Section |
read() |
Page Number |
1853 |
Line Number |
61099 |
Interp Status |
--- |
Final Accepted Text |
|
|
Summary |
0001882: read() EISDIR mentions readdir() but not posix_getdents() |
Description |
The read() EISDIR error says "The readdir() function should be used instead". Now that posix_getdents() has been added, it should be mentioned too. In fact, it should probably be mentioned first, as it takes an fd like read() does, whereas to use readdir() would require obtaining a directory stream using fdopendir().
Also, the EISDIR error is shaded XSI but I can't see any reason why that should be so. Presumably it ended up that way in the 2001 merge because the error was in SUSv2 but not in POSIX.1-1996, but it includes the condition "and the implementation does not allow the directory to be read", so I think the XSI shading was unnecessary back then.
|
Desired Action |
Change:The fildes argument refers to a directory and the implementation does not allow the directory to be read using read() or pread(). The readdir() function should be used instead. to:The fildes argument refers to a directory and the implementation does not allow the directory to be read using read() or pread(). The posix_getdents() function should be used instead, or fdopendir() followed by readdir().
and remove the XSI shading from the entire [EISDIR] error text.
|
Tags |
tc1-2024 |
|
Attached Files |
|
|