Re: [Chicken-hackers] [PATCH] proposed bugfix for #706

2011-09-29 Thread Christian Kellermann
* Alan Post alanp...@sunflowerriver.org [110928 22:49]: On Wed, Sep 28, 2011 at 10:10:14PM +0200, Christian Kellermann wrote: I now notice that barf says stat on an OOM error. Excuse my nitpicking, but should that be access? It should. To complete this patch if only for the archives, I have

Re: [Chicken-hackers] [PATCH] proposed bugfix for #706

2011-09-29 Thread Felix
From: Christian Kellermann ck...@pestilenz.org Subject: Re: [Chicken-hackers] [PATCH] proposed bugfix for #706 Date: Thu, 29 Sep 2011 09:25:21 +0200 * felix winkelmann fe...@call-with-current-continuation.org [110929 03:18]: I would suggest simply to detect the error in C_file_info_2, and act

Re: [Chicken-hackers] [PATCH] proposed bugfix for #706

2011-09-29 Thread Felix
I am not quite sure I understand this correctly. Catch the error and if it is an overflow, redo it with a flonum? I am not sure if this is even possible since the internal check is against whether you are a 32-bit application and your off_t datatype is large enough to hold the size.

Re: [Chicken-hackers] [PATCH] proposed bugfix for #706

2011-09-29 Thread Christian Kellermann
* felix winkelmann fe...@call-with-current-continuation.org [110929 12:15]: I am not quite sure I understand this correctly. Catch the error and if it is an overflow, redo it with a flonum? I am not sure if this is even possible since the internal check is against whether you are a

Re: [Chicken-hackers] [PATCH] proposed bugfix for #706

2011-09-29 Thread Alan Post
On Thu, Sep 29, 2011 at 12:28:07PM +0200, Christian Kellermann wrote: Ok, we can signal the error this way. We should also investigate the compatibility of this -D_FILE_OFFSET_BITS=64 stuff. I basically run all of my C code with this magic flag. I believe it changes the type of off_t and