HP-UX 11i March 2002 Release Notes
Programming
Miscellaneous
Chapter 13
227
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.
Machine Identifier Changes to confstr
new at 11i
original release
New machine identifier, partition identifier, and serial number parameters have been
defined for the confstr() library function.
The new parameters for confstr() are defined as follows:
_CS_MACHINE_IDENT
Identifier for each physical machine. Returned as an opaque string of
printable ascii characters.This string has the same value for all
partitions in a physical machine. For hardware classes first released
with HP-UX 11i or later, this ID is unique across all hardware classes.
For earlier hardware classes, the ID number is unique only within the
hardware class. A null string is returned if no ID number is available;
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.