Re: [AD] bugfix for files > 2GB under unix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] bugfix for files > 2GB under unix
- From: "Peter Hull" <peterhull90@xxxxxxxxxx>
- Date: Mon, 22 May 2006 06:53:00 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KVygNuNHpz5sJ7tHCa+VRz5hwLUrKtF4L9RzG35rt6gHDx5qZAdgJrX3hZmRmjy6PXk4LixSAR1ZhkP+HwUTwSmkS86lL3G8T27g7I6JzolX2hGQsVcKz339+TE3zl7sIbzuB9DtUsGALI/ucxpdfiNRRKIIiJNkq/bUKfB7RxQ=
That's odd; it doesn't mention any of that in my man pages. What
version have you got?
When I compile this
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdint.h>
int main(void) {
struct stat ss;
printf("%d\n", sizeof(ss.st_size));
return 0;
}
it gives me the answer '8', from which I inferred that st_size is 64 bits.
Pete
On 5/22/06, Chris <chris.kcat@xxxxxxxxxx> wrote:
On Sunday 21 May 2006 13:26, Peter Hull wrote:
> OSX doesn't (AFAICS) have stat64, but the file size field of struct
> stat is defined as off_t, which is 64-bit.
Not on 32-bit systems by default. According to my man pages:
The library routine lseek() uses the type off_t. This is a 32-bit signed
type on 32-bit architectures, unless one compiles with
#define _FILE_OFFSET_BITS 64
in which case it is a 64-bit signed type.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers