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

readdir on linux 2.4.9 / Irix64 server #3009

Closed
vicuna opened this issue Nov 6, 2001 · 2 comments
Closed

readdir on linux 2.4.9 / Irix64 server #3009

vicuna opened this issue Nov 6, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 6, 2001

Original bug ID: 609
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Martin Jambon
Version: 3.03 ALPHA
OS: linux 2.4.9.12smp + Irix64 NFS server
Submission from: pc-bioinfo1.ibcp.fr (193.51.160.63)

Unix.readdir fails when reading some (large) directories from an Irix file
server. End_of_file is raised because of an error occuring in the C readdir
function: the error code is EOVERFLOW.

I solved my problem by putting the following line at the beginning of
otherlibs/unix/readir.c (but I don't if it's a good way to proceed).

#define _FILE_OFFSET_BITS 64

I got the information here:

http://devrandom.net/lists/archives/2001/9/NFS/0023.html
http://devrandom.net/lists/archives/2001/9/NFS/0022.html

@vicuna
Copy link
Author

vicuna commented Nov 26, 2001

Comment author: administrator

I solved my problem by putting the following line at the beginning of
otherlibs/unix/readir.c (but I don't if it's a good way to proceed).

#define _FILE_OFFSET_BITS 64

Thanks for the information. After reading some more about this FILE_OFFSET_BITS

business, this looks both useful on platforms that support it, and harmless
on platforms that don't, so let me put this in the working sources.

In the long term, we'll have to provide a complete API for working
with large files, but in the meantime your suggested fix should already help.

Best regards,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Nov 26, 2001

Comment author: administrator

Fixed as suggested 2001-11-26 by XL.

@vicuna vicuna closed this as completed Nov 26, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant