Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (w) write(2)
RELATED INFORMATION
Functions: creat(2), fcntl(2), lseek(2), open(2), pipe(2), socket(2), ulimit(3).
STANDARDS CONFORMANCE
The HP implementation does not:
• Return the errno value [EWOULDBLOCK] for a call on a socket that does not have
O_NONBLOCK set and does not have space available to receive data
• Generate the SIGXFSZ signal
The POSIX standards leave some features to the implementing vendor to define. These features
are affected in the HP implementation:
• Calls to the write() function with the nbytes parameter equal to 0 are supported for all
regular and nonregular files.
• After reading from a device that is incapable of seeking, the value of the file pointer is
always 0 (zero).
• Specifying a value for the nbytes parameter that is greater than SSIZE_MAX causes the
write() function to return -1 and set errno to [EINVAL].
• errno can be set to [EIO] if a physical I/O error occurs.
HP extensions to the XPG4 Version 2 specification are:
• The errno values [ECONNRESET], [EFAULT], [EGUARDIANLOCKED], [EINVAL],
[ENETDOWN], [ENOTCONN], [ETIMEDOUT], and [EWRONGID] can be returned.
527186-003 Hewlett-Packard Company 10−17