problems with _LARGE_FILES on AIX 5.1 with 32-bit kernel
jw at pegasys.ws
Fri Feb 14 07:24:04 EST 2003
On Thu, Feb 13, 2003 at 05:01:58PM +0100, Andreas Schott wrote:
> Dear rsync-developers,
> on AIX5.1 with 32-bit kernel one can have large-file support.
> rsync in principle supports it correctly since the flag
> _LARGE_FILES is treated correctly in the /usr/include/*.h
> But there is one point missing, the mkstemp is not opening
> a large file. So syncing large files crash after 2GB.
> To avoid this one could either put a
> #ifdef _LARGE_FILES
> #undef HAVE_SECURE_MKSTEMP
> at the beginning of syscall.c or in rsync.h, or one could add a
> in line 154 of syscall.c
> Best configure would not define HAVE_SECURE_MKSTEMP if
> _LARGE_FILES is defined, because mkstemp is not secure
> for large files. There is no mkstemp64.
> I did not check, whether with a 64-bit-kernel the mkstemp
> works properly, since I have no access to a machine running
> AIX5.1 in 64-bit kernel-mode.
> For replies, pleas reply directly, since I am not on the list.
This is an ongoing problem with AIX and only AIX. If you
have a support contract file a bug report against libc with IBM.
open() is working, they just need to fix mkstemp in the library.
The fix (workaround) should go in autoconf. I'd consider
doing it but i neither have acccess to an AIX system nor am
a wiz with autoconf. It needs to be AIX specific.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync