HP-UX 11i June 2004 Release Notes
Programming
Miscellaneous
Chapter 15
319
In addition to the above data structures, several existing PSTAT data structures have
been extended. These include: pst_dynamic, pst_vminfo, pst_vm_status, pst_status,
pst_static, and pstun.
Documentation
The existing pstat (2) manpage has been extended to reflect the added functionality.
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.
pst_fid Used to efficiently re-access the opened files. This value is
returned by pstat_getfile2(), pstat_getproc(), and
pstat_getprocvm() calls. This ID is then passed to
subsequent PSTAT calls such as pstat_getsocket() to
efficiently re-access the opened files.
pst_filedetails This data structure contains detailed information specific to a
particular open file. For a specified file, there is only one
instance of this structure. This information includes stat
equivalent information.
pst_socket The PSTAT socket structure contains detailed information
pertaining to an opened socket, such as type, state, protocol,
address family, and options of the socket. For a specified
socket, there is only one instance of this structure.
pst_stream The PSTAT stream structure contains detailed information
pertaining to a stream entity. This includes information about
the head, names of modules pushed, and the driver of the
stream.
pst_mpathnode This structure is returned by pstat_getmpathname() routine
that provides a copy of the DNLC entries for a given file
system. The information contained in this structure includes
id of the current file or directory, parent of the current entry,
and the name of the current entry. By traversing the DNLC
entries in the reverse order, one can obtain the pathname for
an opened file to the mount point.