[Toybox] readdir() and deleted files
enh
enh at google.com
Thu Nov 7 09:47:51 PST 2024
looking at
https://lore.kernel.org/lkml/20241107005831.15434-1-elsk@google.com/T/#u i
note that there _is_ a difference between glibc readdir() and bionic/musl
readdir() --- glibc explicitly doesn't report any entry where d_ino is 0.
i couldn't find any documentation on this, so i don't know whether this is
some undocumented thing that linux expects libc to do or what. but i
thought you might be interested, since two of your five libcs aren't doing
it, and you may or may not want to do it in your wrapper? (i'm _assuming_
the bsd/macOS kernels just do this themselves rather than leaving it as
userspace's problem, since they tend to lean that way. though i'm not
really sure what exact state "returned from getdents64(2) but with d_ino 0"
actually _means_, so it's possible there's a legit use to reporting this to
userspace?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20241107/87116a30/attachment.htm>
More information about the Toybox
mailing list