Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 11i December 2001 Release Notes: HP-UX Servers and Workstations > Chapter 13 Programming

Changes to sendfile

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2001 Hewlett-Packard Development Company, L.P.