Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
send64_(2) OSS System Calls Reference Manual
32-bit Guardian and 64-bit OSS clients can pass 32-bit pointers and 64-bit pointers to send64_().
NOTES
This function requires that the feature-test macro _XOPEN_SOURCE_EXTENDED be specified
when you compile the module.
When data can be sent, a call to the select() function indicates that the file descriptor for the
socket is ready for writing.
Calling the send64_() function with a flags parameter of 0 (zero) is identical to calling the
write64_() function.
For detailed information about writing multi-threaded and 64-bit applications for the Open Sys-
tem Services environment, see the Open System Services Programmer’s Guide.
RETURN VALUES
Upon successful completion, the send64_() function returns the number of bytes sent. Other-
wise, the value -1 is returned and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the send64_() function sets errno to the corresponding
value:
[EBADF] The socket parameter is not a valid file descriptor.
[ECONNRESET]
One of the following conditions occurred:
• The transport-provider process for this socket is no longer available.
• The TCP/IP subsystem for this socket is no longer available.
• The connection was forcibly closed by the peer socket.
The socket can only be closed.
[EDESTADDRREQ]
The socket is not connection-oriented and no peer address is set.
[EFAULT] A user-supplied memory buffer cannot be accessed.
[EINTR] A signal interrupted the function before any data was transmitted.
[EIO] An input or output error occurred.
[EMSGSIZE] The message is too large to be sent all at once, as required by the socket.
[ENETDOWN]
The local interface used to reach the destination is down.
[ENETUNREACH]
No route to the network or host is present.
[ENOBUFS] Not enough buffer space was available to complete the call. A retry at a later
time might succeed.
[ENOMEM] There was insufficient memory available to complete the operation.
7−32 Hewlett-Packard Company 527186-023