SVR5
errnos(D5)
errnos --
error numbers
Synopsis
   #include <sys/errno.h>
   #include <sys/ddi.h>
Description
The following is a list of the error codes that drivers may return from their
entry points, or include in STREAMS messages (for example, M_ERROR messages).
EACCES- 
Permission denied.  An attempt was made to access a file in a way forbidden by its
file access permissions.
 
EADDRINUSE- 
The address requested is already in use.
 
EADDRNOTAVAIL- 
The address requested cannot be assigned.
 
EAFNOSUPPORT- 
The address family specified is not installed or supported on the host.
 
EAGAIN- 
Temporary resource allocation failure; try again later.  Drivers can return this
error when resource allocation fails, for example,
kmem_alloc(D3)
or
allocb(D3str).
 
EALREADY- 
The operation requested is already being performed.
 
EBUSY- 
Device is busy.  This can be used for devices that require exclusive access.
 
ECONNABORTED- 
A received connect request was aborted when the
peer closed its endpoint.
 
ECONNREFUSED- 
The connection was refused.
 
ECONNRESET- 
The connection was reset by the peer entity.
 
EDESTADDRREQ- 
The requested operation required a destination address
but none was supplied.
 
EEXIST- 
Unable to register module for dynamic loading
because the module is already statically configured.
 
EFAULT- 
Bad address.  Drivers should return this error whenever a call to
copyin(D3)
or
copyout(D3)
fails.
 
EHOSTDOWN- 
Host is down.
 
EHOSTUNREACH- 
No route to host.
 
EINPROGRESS- 
The operation requested is now in progress.
 
EINTR- 
Interrupted operation.  Drivers can return this error whenever an interruptible operation
is interrupted by receipt of an asynchronous signal.
 
EINVAL- 
Invalid argument.  Drivers can return this error for operations that have invalid
parameters specified.
 
EIO- 
An I/O error has occurred.  Drivers can return this error when an input or output
request has failed.
 
EISCONN- 
The endpoint is already connected.
 
EMSGSIZE- 
Message too long. The protocol is such that there is a limit to the
size of a message and that limit has been exceeded.
 
ENETDOWN- 
The network trying to be reached is down.
 
ENETRESET- 
The network dropped the connection because of a reset.
 
ENETUNREACH- 
The network trying to be reached is unreachable.
 
ENOBUFS- 
No buffer space available.
 
ENODEV- 
No such device.
Drivers can return this error when an attempt is made to apply an
inappropriate function to a device;
for example, trying to read a write-only device such as a printer.
 
ENOMEM- 
Not enough memory.  Drivers can return this error when resource allocation fails and
it is either inconvenient or impossible for a retry to occur.
 
ENOPROTOOPT- 
The protocol option requested is not available at the level indicated.
 
ENOSPC- 
The device is out of free space.
 
ENOSYS- 
The operation requested is not supported.
 
ENOTCONN- 
The requested operation requires the endpoint to be
connected but it is not.
 
ENXIO- 
No such device or address.
Drivers can return this error
when trying to open an invalid minor device,
or when trying to perform I/O past the end of a device.
This error may also occur when, for example,
a tape drive is not online or a disk pack is not loaded on a drive.
 
EOPNOTSUPP- 
The operation requested is not supported.
 
EPERM- 
Permission denied.
Drivers can return this error
when an operation is attempted
that requires more privilege
than the current process has.
 
EPROTO- 
Protocol error.
Drivers can return this error
when they incur a protocol error,
such as not being able to generate
the proper protocol message because of resource exhaustion,
and not being able to recover gracefully.
 
ETIMEDOUT- 
The connection timed out.
 
Usage
The above examples are not exhaustive.
Hardware applicability
All
Version applicability
ddi:
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
References
geterror(D3)
19 June 2005
© 2005 The SCO Group, Inc.  All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005