HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)
w
write(2) write(2)
Issue 4
The following changes are incorporated for alignment with the ISO POSIX-1 standard:
• The type of the argument buf is changed from char * to const void*, and the type of the argument
byte is changed from unsigned size_t.
• The DESCRIPTION section is changed:
- to indicate that writing at end-of-file is atomic
- to identify that
{SSIZE_MAX} is now used to determine the maximum value of nbyte
- to indicate the consequences of activities after a call to the
write() function
- To improve clarity, the text describing operations on pipes or FIFOs when
O_NONBLOCK is set
is restructured.
Other changes are incorporated as follows:
• The header
<unistd.h> is added to the SYNOPSIS section.
• Reference to ulimit in the DESCRIPTION section is marked as an extension.
• Reference to the process’ file size limit and the
ulimit() function are marked as extensions in
the description of the [EFBIG] error.
• The
ENXIO error is marked as an extension.
• The APPLICATION USAGE section is removed.
• The description of [EINTR] is amended.
Issue 4, Version 2
The following changes are incorporated for X/OPEN UNIX conformance:
• The
writev() function is added to the SYNOPSIS.
• The DESCRIPTION is updated to describe the reading of data from STREAMS files, an operational
description of the writev() function is included, and a statement is added indicating that
SIGXFSZ will be generated if an attempted write operation would cause the maximum file size to
be exceeded.
• The RETURN VALUE section is updated to describe values returned by the
writev() function.
• The ERRORS section has been restructured to describe errors that apply to both
write() and
writev() apart from those that apply to
writev() specifically. The [EIO], [ERANGE], and [EIN-
VAL] errors are also added.
HP-UX 11i Version 1: September 2005 − 4 − Hewlett-Packard Company Section 2−−483