Skip to content

Always Use 64-Bit Version Of readdir()#2

Open
TheBrokenRail wants to merge 1 commit into
MFDGaming:mainfrom
TheBrokenRail:fix-readdir
Open

Always Use 64-Bit Version Of readdir()#2
TheBrokenRail wants to merge 1 commit into
MFDGaming:mainfrom
TheBrokenRail:fix-readdir

Conversation

@TheBrokenRail

@TheBrokenRail TheBrokenRail commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

This fixes readdir() failing with EOVERFLOW (and thus returning no files) when used on a 64-bit filesystem.

This is the equivalent of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/src/commit/1a4a30d62324d642564271152e2e69de188e7ae4/mods/src/compat/readdir.cpp.

@MFDGaming

MFDGaming commented Dec 10, 2025

Copy link
Copy Markdown
Owner

This fixes readdir() failing with EOVERFLOW (and thus returning no files) when used on a 64-bit filesystem.

This is the equivalent of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/src/commit/1a4a30d62324d642564271152e2e69de188e7ae4/mods/src/compat/readdir.cpp.

Does this also exist on non gnu libc implementations, e.x. musl?

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

Successfully merging this pull request may close these issues.

2 participants