Skip to content

cmake: make the glibc file offset great again#1990

Merged
illwieckz merged 1 commit into
masterfrom
illwieckz/linux-glibc
Jul 9, 2026
Merged

cmake: make the glibc file offset great again#1990
illwieckz merged 1 commit into
masterfrom
illwieckz/linux-glibc

Conversation

@illwieckz

Copy link
Copy Markdown
Member

I'm surprised the CI didn't catch it, that's a minor regression from me missing a rewrite after the porting to Yokai.

This affects linux-i686 where we need to assume such file stuff size is 64-bit whatever the architecture.

@slipher

slipher commented Jul 9, 2026

Copy link
Copy Markdown
Member

LGTM

If this is supposed to be important, it would be a good thing to have a unit test for. Maybe you could have a 10 byte file (opened with FS::File I guess so that it says anything about Daemon) and seek to position 2^32 + 5 then test that you are at the end.

@illwieckz

illwieckz commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

Some unit tests would be welcome, but I caught it because the compilation entirely failed. It may depend on default configuration on some distros, or on the way some headers are included if a dependency already sets the flag in some way or another.

@illwieckz illwieckz merged commit 7bec0ec into master Jul 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants