dkerror(3) - Linux man page

Name

dkerror.h - Definition of error indicators

Description

This include file defines some values for error indicators:

DK_ERR_NONE
No error occured.
DK_ERR_SYSERR
A system error occured, see errno.
DK_ERR_NOMEM
Failed to allocate memory dynamically.
DK_ERR_BUFFER_LENGTH
A buffer was too small to keep the operation result.
DK_ERR_MATH_OOR
The result of a mathematical operation was out of range.
DK_ERR_DIV_ZERO
A 0 division occured.
DK_ERR_NO_GETHOSTBYNAME
The gethostbyname() function is not available here.
DK_ERR_NO_SUCH_HOST
Failed to retrieve information about a given host.
DK_ERR_TRY_AGAIN
Temporary ressources limit.
DK_ERR_NO_RECOVERY
An unexpected server error occured while gethostbyname() was running.
DK_ERR_NO_DNS_RESPONSE
The DNS server's response contained no data.
DK_ERR_UNKNOWN_ERROR
An error occured, but no clear reason can be found.
DK_ERR_INVALID_ARGS
A function call contained invalid arguments.
DK_ERR_GETHOSTNAME_FAILED
The program failed to determine the current host name.
DK_ERRO_NOT_NOW
Function calls were invoked in the wrong order. I.e. you can not send data via a TCP transport endpoint before establishing the connection...
DK_ERR_INVALID_FILEHANDLE
A file handle or socket descriptor has an invalid numeric value.
DK_ERR_CONNECTION_CLOSED_BY_PEER
A TCP transport endpoint is unusable because the other transport endpoint closed the connection.
DK_ERR_INTERRUPTED
A signal was received, so the current operation was interrupted.
DK_ERR_NO_OOB_DATA
Out of band data (urgent data) was requested but there is no such data pending. Or OOB data was send but the connection type does not support it.
DK_ERR_NOT_CONNECTED
The operation to be performed requires an established connection, but there is no connection established yet.
DK_ERR_TIMED_OUT
A timeout happened.
DK_ERR_IO
An error occured while doing I/O.
DK_ERR_RESSOURCES
There was a lack of ressources other than memory (i.e. X11 color cells, streams filters...)
DK_ERR_AF_NO_SUPPORT
An operation was requested which is not supported by the address family.
DK_ERR_MSG_SIZE
The message is too long.
DK_ERR_PIPE
A write operation was attempted on a pipe which has no reader attached.
DK_ERR_NEED_ADDR
The operation requires an address, but there was no address specified.
DK_ERR_HOST_UNREACHABLE
The requested host can not be contacted.
DK_ERR_NET_INTERFACE_DOWN
The local network interface is temporarily unusable.
DK_ERR_NET_UNREACHABLE
The requested host is placed in a network which can not be contacted.
DK_ERR_ACCESS
The requested operation requires privileges you don't have.
DK_ERR_PROTO_NOT_SUPPORTED
The requested protocol is not supported on this host or network interface.
DK_ERR_ADDRESS_IN_USE
Failed to bind to a local address because this local address is already in use.
DK_ERR_ADDRESS_NOT_AVAILABLE
This address is not available.
DK_ERR_ALREADY_CONNECTED
A connection is already established, we can not connect the same transport endpoint again.
DK_ERR_CONNECT_IN_PROGRESS
A connection operation is in progress for this endpoint (we wait for a confirmation from the peer).
DK_ERR_CONNECTION_REFUSED_BY_PEER
Establishing the connection was denied on the peer side.
DK_ERR_BUSY
A network address or ressource is busy.
DK_ERR_STRING_TOO_LONG
A string was too long to be processed.
DK_ERR_NO_SUCH_FILE
A wrong file name was specified.
DK_ERR_NOT_UNIQE
A unique file name is needed, but a pattern matching multiple file names was given.
DK_ERR_FINISHED
Traversing a collection (i.e. sorted data storage or a directory) is finished, there are no more elements available.
DK_ERR_FUNCTION_UNSUPPORTED
A function was requested which is not supported on this system.

Author

Dirk Krause

Copyright And License

Copyright © 2001-2008, Dirk Krause All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
  copyright notice, this list of conditions and the
  following disclaimer.

* Redistributions in binary form must reproduce the above
  copyright notice, this list of conditions and the following
  disclaimer in the documentation and/or other materials
  provided with the distribution.

* Neither the name of the Dirk Krause nor the names of
  contributors may be used to endorse or promote products
  derived from this software without specific prior written
  permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .