Re: scsh and large files

Martin Gasbichler <[email protected]>
Newsgroups gmane.lisp.scheme.scsh
Message-ID <wu1xgwvzx4.fsf__9179.3370469988$1095752088$gmane$org@informatik.uni-tuebingen.de>
Lionel Elie Mamane <[email protected]> writes:

> On Tue, Sep 14, 2004 at 10:34:19PM +0200, Lionel Elie Mamane wrote:
>> On Tue, Sep 14, 2004 at 09:46:51PM +0200, Martin Gasbichler wrote:
>>> Lionel Elie Mamane <[email protected]> writes:
>
>>>> I get the impression that (on GNU/Linux) scsh gets compiled without
>>>> large file ( > 2GB) support. Is there a way around that?
>
>>> Yes, please add AC_SYS_LARGEFILE to configure.in.
>
>> Is this all there is to it? off_t becomes 64 bits instead of 32 bits
>> long then, doesn't code at the scheme/C border need to be adapted,
>> too? I'll try to see if the seek functions still work to test it.
>
> I did the following tests:
>
>  - (run (cat) (> "foo")) works alright when more than 2GB pass.
>
>  - (file-size "foo") gives a negative number when foo is between 2 and
>    4GB and the size of foo minus 4GB between 4GB and 6GB.

Okay, so for now scsh doesn't work on large files. I'll try to fix
this as soon as possible.

-- 
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.