develooper Front page | perl.perl5.porters | Postings from November 2000

[PATCH] Re: [ID 20001109.009] PERLIO=stdio breaks lfs support

Thread Previous
From:
Nick Ing-Simmons
Date:
November 10, 2000 05:30
Subject:
[PATCH] Re: [ID 20001109.009] PERLIO=stdio breaks lfs support
Message ID:
E13uEGP-0007cd-00@serv1.is1.u-net.net
Nick Ing-Simmons <nik@tiuk.ti.com> writes:
>>It occured to me driving to work to check what perlsdio.h does.
>>It has : 
>>
>>#if defined(USE_64_BIT_STDIO) && defined(HAS_FSEEKO) && !defined(USE_FSEEK64)
>>#define fseek fseeko
>>#endif
>>
>>perlio.c needs to do likewise.
>
>This is the patch.

Checked into to _mainline_ as chnage 7635.

If I get a chance this weekends project is to :
  A. sort out the .h file and #ifdef forest.
  B. Implement the documented, hinted-at, binmode/open/open.pm syntax.
Will do this in perlio branch for now.

>
>I discovered that my work Solaris system was behaving just like 
>the bug case - but as all (run) tests passed I did not notice.
>
>-- 
>Nick Ing-Simmons <nik@tiuk.ti.com>
>Via, but not speaking for: Texas Instruments Ltd.
>
>
>--- ../perlio/perlio.c	Thu Nov  9 20:25:30 2000
>+++ perlio.c	Fri Nov 10 10:29:48 2000
>@@ -1037,6 +1037,15 @@
> /*------------------------------------------------------------------------=
>--------------*/
> /* stdio as a layer */
>=20
>+#if defined(USE_64_BIT_STDIO) && defined(HAS_FSEEKO) && !defined(USE_FSEEK=
>64)
>+#define fseek fseeko
>+#endif
>+
>+#if defined(USE_64_BIT_STDIO) && defined(HAS_FTELLO) && !defined(USE_FTELL=
>64)
>+#define ftell ftello
>+#endif
>+
>+
> typedef struct
> {
>  struct _PerlIO	base;
-- 
Nick Ing-Simmons


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About