Re: [GENERAL] Linux Largefile Support In Postgresql RPMS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Linux Largefile Support In Postgresql RPMS
Date: 2002-08-13 15:04:38
Message-ID: 25955.1029251078@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Oliver Elphick <olly(at)lfix(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-08-13 15:12:45 Re: oid2name reports much fewer files...
Previous Message Oleg Bartunov 2002-08-13 14:46:20 OpenFTS 0.33 Release

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-13 15:08:58 Re: Temporary Views
Previous Message Bruce Momjian 2002-08-13 14:55:03 Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke