HP-UX 11i December 2001 Release Notes

Programming
Changes to sendfile
Chapter 13
223
Changes to sendfile
The sendfile() system call is used to send a file directly over the network without
having to perform many separate send() commands.
In previous releases, sendfile() did not work properly with large files, that is, when
an application made a call to sendfile() and was compiled with the following compiler
flags: LARGEFILE(64)_SOURCE and/or FILE_OFFSET_BITS=64. These flags allowed a
32-bit application to access large files that were over 2GB in size.
These large file applications should be recompiled on 11i. If the ‘nbytes’ parameter is not
set to zero and they are not recompiled, these applications will not execute on 11i. To
work correctly, the large file applications need to be recoded with the new bsize_t and
sbsize_t types. See the sendfile (2) and sendfile64 (2) manpages for more information.
32-bit or 64-bit applications that use sendfile() and are not compiled with the
LARGEFILE(64)_SOURCE or FILE_OFFSET_BITS=64 flags do not need to be changed or
recompiled for HP-UX 11i.