Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ errnos(D5) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       errnos(D5)                                                errnos(D5)


       NAME
             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(D3).

             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.





                           Copyright 1994 Novell, Inc.               Page 1













      errnos(D5)                                                errnos(D5)


            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


                          Copyright 1994 Novell, Inc.               Page 2













       errnos(D5)                                                errnos(D5)


                             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 a 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.





                           Copyright 1994 Novell, Inc.               Page 3













      errnos(D5)                                                errnos(D5)


      REFERENCES
            geterror(D3)

      NOTICES
         Portability
            All processors










































                          Copyright 1994 Novell, Inc.               Page 4








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026