Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable large-file support on i386-linux-gnu #9478

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

kubo
Copy link
Contributor

@kubo kubo commented Jun 14, 2020

#9463, #9297 (comment)

Without large-file support File.open, File.info, Dir#read fail for files whose size is larger than 2G or whose inode number is larger than 4G on 32-bit linux.

This commit enables large-file support by using type definitions, function names and structure members when _FILE_OFFSET_BITS=64 is defined in C.

Without large-file support `File.open`, `File.info`, `Dir#read`
fail for files whose size is larger than 2G or whose inode
number is larger than 4G on 32-bit linux.

This commit enables large-file support by using type definitions,
function names and structure members when _FILE_OFFSET_BITS=64
is defined in C.
@jhass jhass added kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform topic:stdlib labels Jun 14, 2020
@jhass
Copy link
Member

jhass commented Jun 19, 2020

I'm just curious, if you don't mind: Do you still use a 32bit system in 2020? If so, can you tell me a bit about it and what you use it for? :)

@kubo
Copy link
Contributor Author

kubo commented Jun 20, 2020

Do you still use a 32bit system in 2020?

No. I have not used i386-linux for several years. I made this patch to check large-file support in crystal, which may be needed on arm-linux-gnueabihf.

FYI, when 32-bit system is not limited to i386, x32 ABI seems usable in extreme benchmarking.

@jhass
Copy link
Member

jhass commented Jun 20, 2020

Huh, first time I hear the term extreme bechmarking :D Searched a bit and I'm still not sure what it is...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. platform topic:stdlib:files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants