Error Messages
Errno is a standard error variable used in UNIX* programming. For portability, the C library (HPC.LIB) also returns error values in a global variable called errno. The following is a list of the error messages for HP 1000 BSD IPC.
Table 43. Error Messages
Value of |
|
|
errno | Error Mnemonic | Meaning |
|
|
|
1 | [ENFILE] | Currently there are no resources available. |
|
|
|
13 | [EINVAL] | One of the following occurred: |
|
| The value of a specified parameter is invalid. |
|
| The socket is not a BSD IPC socket. |
|
| The socket has already been shut down. |
|
| The socket is not ready to accept |
|
| connections yet. A listen() call must be |
|
| done before an accept() call. |
|
| The socket is already bound to an address. |
|
|
|
202 | [EAGAIN] | Nonblocking I/O is enabled and: |
|
| 1. for accept(), no connection is present |
|
| to be accepted. |
|
| 2. for send(), the socket does not have |
|
| space to accept any data at all. |
|
|
|
203 | [EEFAULT] | For getsockopt() and setsockopt(), |
|
| the optval or optlen parameter is not |
|
| valid. |
|
|
|
204 | [EMFILE] | The maximum number of socket descriptors |
|
| for this process are already currently open. |
|
| This could happen since sockets need to be |
|
| created for internal use. |
|
|
|
205 | [EPIPE] | An attempt was made to send on a socket |
|
| whose connection has been shut down by |
|
| the remote peer process. |
|
|
|
215 | [EMSGSIZE] | In nonblocking mode, the socket requires |
|
| that messages be sent atomically, and the |
|
| message size exceeded the outbound buffer |
|
| size. |
|
|
|
216 | [ENOTSOCK] | The socket descriptor, socket, is not a valid |
|
| socket descriptor. |
|
|
|
220 | [ENOPROTOOPT] | The requested socket option is currently not |
|
| set. |
|
|
|
221 | [EPROTONOSUPPORT] | The specified protocol is not supported. |
|
|
|
222 | [ESOCKTNOSUPPORT] | The specified socket type is not supported in |
|
| this address family. |
|
|
|
223 | [EOPNOTSUPP] | The socket descriptor, socket, does not |
|
| support this call or a parameter in this call. |
|
|
|
*UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Limited.
Berkeley Software Distribution Interprocess Communication 435