You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
13MAY24: Fixed directory reading using FAM to conserve RAM (#546)
This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Fixed directory reading using FAM to conserve RAM
- The zero-sized array approach that was tried previously was apparently
causing undefined behavior since it was not the last member of the DIR
structure, when calling readdir()
- Modified it back to using a FAM, except this time got it working with
C++ (and GNU extensions), by using a unionization of the inner dirent
structure along with an additional extension to hold the name.
* Fixed handling NULL terminator for NAME_MAX.
The POSIX NAME_MAX is not supposed to be the array capacity for the
name, it's supposed to be the MAX STRING LENGTH, meaning we also must
have one extra byte for a NULL terminator!
---------