From: Jarkko Hietaniemi Date: Mon, 20 Sep 1999 09:09:29 +0000 (+0000) Subject: Add usemorebits and uselfs. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=09458382d6f82e1b78d84a10deb31f6e154f062a;p=p5sagit%2Fp5-mst-13.2.git Add usemorebits and uselfs. p4raw-id: //depot/cfgperl@4204 --- diff --git a/Configure b/Configure index 0d497fd..a63fbf6 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Fri Sep 17 12:06:13 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Sep 20 12:12:09 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #$use64bits USE_64_BITS /**/ +/* USE_LARGE_FILES: + * This symbol, if defined, indicates that large file support + * should be used when available. The USE_64_BITS symbol will + * also be turned on. + */ +#$uselfs USE_LARGE_FILES /**/ + /* USE_LONG_DOUBLE: * This symbol, if defined, indicates that long doubles should * be used when available. diff --git a/doio.c b/doio.c index 0b1cdd1..2baecec 100644 --- a/doio.c +++ b/doio.c @@ -141,7 +141,7 @@ Perl_do_open9(pTHX_ GV *gv, register char *name, I32 len, int as_raw, } if (as_raw) { -#if defined(USE_64_BIT_OFFSETS) && defined(O_LARGEFILE) +#if defined(USE_64_BIT_RAWIO) && defined(O_LARGEFILE) rawmode |= O_LARGEFILE; #endif diff --git a/perl.h b/perl.h index 27a9de9..48765ee 100644 --- a/perl.h +++ b/perl.h @@ -1422,17 +1422,13 @@ typedef union any ANY; #include "handy.h" -#ifdef USE_64_BITS -# define USE_64_BIT_FILES -#endif - -#if defined(USE_64_BIT_FILES) || defined(USE_LARGE_FILES) -# define USE_64_BIT_OFFSETS /* Explicit */ +#if defined(USE_LARGE_FILES) +# define USE_64_BIT_RAWIO /* Explicit */ # define USE_64_BIT_STDIO #endif -#if LSEEKSIZE == 8 && !defined(USE_64_BIT_OFFSETS) -# define USE_64_BIT_OFFSETS /* Implicit */ +#if LSEEKSIZE == 8 && !defined(USE_64_BIT_RAWIO) +# define USE_64_BIT_RAWIO /* Implicit */ #endif /* Do we need FSEEKSIZE? */ @@ -1449,7 +1445,7 @@ typedef union any ANY; #define USE_FREOPEN64 #endif -#ifdef USE_64_BIT_OFFSETS +#ifdef USE_64_BIT_RAWIO # ifdef HAS_OFF64_T # undef Off_t # define Off_t off64_t @@ -1458,7 +1454,7 @@ typedef union any ANY; # endif /* Most 64-bit environments have defines like _LARGEFILE_SOURCE that * will trigger defines like the ones below. Some 64-bit environments, - * however, do not. */ + * however, do not. Therefore we have to explicitly mix and match. */ # if defined(USE_OPEN64) # define open open64 # endif