fast_io
fast_io copied to clipboard
Todo: Remove fstat stat calls. Replace them with statx syscall
https://github.com/bminor/glibc/commit/e6547d635b991651600fab31f788ed5facd77610
As glibc's commit points out, loongarch is the first architecture that would no longer be for both fstat and stat.
The reason is quite simple, statx is an objectively better syscall than fstat and stat. It makes no sense to continue using fstat or stat anymore on Linux.
If loongarch opens the door for not supporting fstat and stat, it is time to avoid them for all architectures.
However, this would make the emulation on windows much more complex, but I guess the gain worth the cost.