Re: [GENERAL] Linux Largefile Support In Postgresql RPMS - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] Linux Largefile Support In Postgresql RPMS
Date
Msg-id 25955.1029251078@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Linux Largefile Support In Postgresql RPMS  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: [GENERAL] Linux Largefile Support In Postgresql RPMS
List pgsql-hackers
Oliver Elphick <olly@lfix.co.uk> writes:
> On Tue, 2002-08-13 at 15:23, Tom Lane wrote:
>> Why not just use off_t?  In both cases?

> The prototype for fseek() is long int; I had assumed that off_t was not
> defined if _LARGEFILE_SOURCE was not defined.

Oh, you're right.  A quick look at HPUX shows it's the same way: ftell
returns long int, ftello returns off_t (which presumably is an alias
for long long int).  Okay, OFF_T seems a reasonable answer.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke
Next
From: Bruce Momjian
Date:
Subject: Re: Temporary Views