[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnadmin hotcopy problem with strings > 2G

From: Dimitri Papadopoulos-Orfanos <papadopo_at_shfj.cea.fr>
Date: 2004-05-04 12:41:06 CEST

Hi,

>>On RH8 the native off_t is 64-bit or 32-bit depending on the compilation
>>options. So it does make sense to compile APR with "large file" support.
>
>
> This is a dangerous advice.
> Assuming a C function "void foo(off_t);", you get two different effective
> prototypes depending on the settings. However, the symbol which the linker
> sees will be called "foo", no matter what. Programs assuming 64 bit off_t
> will happily call a 32 bit foo and break silently and mysteriously.

I don't know where you got this information from. The procedure I've
described is standard procedure. All automake/autoconf projects use it
for example. See for example:
        http://ftp.sas.com/standards/large.file/x_open.20Mar96.html
        http://www.suse.de/~aj/linux_lfs.html
        ...

Depending on the compile time settings, foo actually ends up being foo64
or foo. Have a look a Unix/Linux <stdio.h> header for more information
on how it works (usually either #pragma or #define).

Dimitri

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 4 11:41:38 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.