View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001979 | 1003.1(2024)/Issue8 | System Interfaces | public | 2026-04-05 05:13 | 2026-04-05 05:13 |
| Reporter | philip-guenther | Assigned To | |||
| Priority | normal | Severity | Editorial | Type | Clarification Requested |
| Status | New | Resolution | Open | ||
| Name | Philip Guenther | ||||
| Organization | OpenBSD | ||||
| User Reference | |||||
| Section | open | ||||
| Page Number | ~1515-1518 | ||||
| Line Number | ~50743-50874 | ||||
| Interp Status | |||||
| Final Accepted Text | |||||
| Summary | 0001979: conflicting specification for open("existing-directory", O_RDONLY | O_CREAT, 0644) | ||||
| Description | The description of open() explains O_CREAT with a paragraph that starts: O_CREAT If the file exists, this flag has no effect except as noted under O_EXCL below. <...> 'file' is of course the XBD 'file' which includes directories, devices, etc. So, open(O_RDONLY|O_CREAT) naming a directory that exists should behave the same as open(O_RDONLY) of that same path. Then later the ERRORS section contradicts that: [EISDIR] The named file is a directory and oflag includes O_WRONLY or O_RDWR, or includes O_CREAT without O_DIRECTORY, or <...> | ||||
| Desired Action | Adjust the description of O_CREAT to remove the contradiction. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-04-05 05:13 | philip-guenther | New Issue |