Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that d_ino == 0 represents an "unknown" inode number #71

Closed
sunfishcode opened this issue Nov 28, 2022 · 1 comment
Closed

Comments

@sunfishcode
Copy link
Member

As discussed in #65, to allow for platforms where the obvious readdir implementation doesn't provide an inode number, allow d_ino to be zero, indicating an unknown number. libc can implement userspace d_ino by doing an fstatat call.

@sunfishcode
Copy link
Member Author

This is obsoleted by #72, which fixes this by making the inode field optional rather than special-casing zero, as zero is a valid inode number on some filesystems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant