Messages in this thread | | | Date | Mon, 3 Nov 1997 23:19:33 -0800 (PST) | From | Clayton Weaver <> | Subject | Re: Filesize limitation |
| |
What's gcc's maximum array dimension? INT_MAX? So I can make a virtual file that indexes an array of "file segments" (real files) of size up to LONG_MAX (off_t)?
voff_t would have to be big, could be unsigned long long, for example, or a BIGNUM. The index into the virtual file array would be voff_t value % filesize (all "file segments" are one convenient size), and the offset into the "file segment" would be the remainder, (value - ((value % filesize) * filesize))).
Looks pretty straightforward to me, until 64bit types are standard for libc offsets and sizes.
Regards, Clayton Weaver cgweav@eskimo.com (Seattle)
| |