-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Most unixes provide dirfd(), which can be used to get a file descriptor from struct DIR *.
The two errors are EINVAL (dirfd called on invalid pointer), which can't occur in correct code, and ENOTSUP (not supported by implementation), which doesn't occur on most implementations.
Most unixes also provide fdopendir(), which opens a file descriptor as struct DIR *. It fails if the file descriptor is invalid or if it fails to allocate memory.
Blub and zopsicle
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.