Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH 2GB File Limit (Solaris 2.6)
- X-seq: zsh-workers 6216
- From: Chet Ramey <chet@xxxxxxxxxxxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx
- Subject: Re: ZSH 2GB File Limit (Solaris 2.6)
- Date: Tue, 4 May 1999 15:04:12 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: Message from schaefer@xxxxxxxxxxxxxxxx of Tue, 4 May 1999 11:00:25 -0700 (id <990504110026.ZM28651@xxxxxxxxxxxxxxxxxxxxxxx>)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Read-receipt-to: chet@xxxxxxxxxxx
- Reply-to: chet@xxxxxxxxxxx
> On May 4, 10:34am, Peter Stephenson wrote:
> } Subject: Re: ZSH 2GB File Limit (Solaris 2.6)
> }
> } That's this code from bash's configure. What do we do, just copy it and
> } change BASH to ZSH?
>
> Unless I'm missing something (which is entirely possible), this configure
> stuff doesn't do anything but define BASH_LARGE_FILE_SUPPORT. There must
> be some actual C code somewhere in the bash source that tests for that
> constant and does *something*. That something is far more interesting
> than the configure part.
I got into this discussion late, but that's not what the code in
bash's aclocal.m4 does. It's designed to work with the Solaris large
file stuff, and very little, if anything, else. It uses getconf to
test for, in turn,
LFS_CFLAGS
LFS64_CFLAGS
LFS_LDFLAGS
LFS64_LDFLAGS
LFS_LIBS
LFS64_LIBS
sets
ac_getconfs
to any values returned, and sets
ac_test_CPPFLAGS
ac_test_LDFLAGS
ac_test_LIBS
to the values appropriate for those variables as returned by getconf.
If any of those variables has a value, the CPPFLAGS, LDFLAGS, and LIBS
variables get seeded from them. The bash configure calls
BASH_LARGE_FILE_SUPPORT before any other autoconf tests that can set
these values, right after AC_PROG_CC.
On Solaris 2.6, CPPFLAGS gets set to
CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
This stuff gets used only if the user didn't pass values for the
variables in configure's environment.
The cpp defines and libraries (if any) make solaris use the 64-bit
versions of certain file-handling system calls. Run `man interface64'
on a Solaris 2.6 machine for more info.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, Case Western Reserve University Internet: chet@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author