Re: Large file support available - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Large file support available
Date
Msg-id 25003.1029872304@sss.pgh.pa.us
Whole thread Raw
In response to Large file support available  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Large file support available
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Large file support is now compiled by default if available.

I am now getting (on HPUX 10.20)

/usr/include/sys/resource.h: In function `getrlimit':
/usr/include/sys/resource.h:168: warning: implicit declaration of function `__getrlimit64'
/usr/include/sys/resource.h: In function `setrlimit':
/usr/include/sys/resource.h:170: warning: implicit declaration of function `__setrlimit64'

for essentially every file in the system.  A little digging shows that
this is happening because _FILE64 is defined and _LARGEFILE64_SOURCE
is not; this is evidently a Bad Idea on HPUX.

Further digging shows that noplace in the standard headers is
_LARGEFILE64_SOURCE #define'd, so evidently one is supposed to supply it
from user headers.  Ugh.  Please add this to the list of
platform-specific symbols that had better be turned on to support large
files.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in
Next
From: Stephan Szabo
Date:
Subject: Re: Proposal: make "opaque" obsolete