next up previous contents index
Next: 4.7 oskit_iunknown: base interface Up: 4.6 COM Header Files Previous: 4.6.1 com.h: basic COM

4.6.2 error.h: error codes used in the OSKit COM interfaces

   

DESCRIPTION

This header file defines the type oskit_error_t , representing a COM error status; it is equivalent to the HRESULT type in Win32. It also defines a number of specific error codes that are widely applicable and used throughout the OSKit.

The following symbols correspond directly to standard COM errors, and use the standard values; they differ only in the OSKIT_ prefix added to the names to avoid conflicts with other header files the client may use.

OSKIT_E_UNEXPECTED
Unexpected error
OSKIT_E_NOTIMPL
Not implemented
OSKIT_E_NOINTERFACE
Interface not supported
OSKIT_E_POINTER
Bad pointer
OSKIT_E_ABORT
Operation aborted
OSKIT_E_FAIL
General failure
OSKIT_E_ACCESSDENIED
Access denied
OSKIT_E_OUTOFMEMORY
Out of memory
OSKIT_E_INVALIDARG
Invalid argument

The following symbols correspond to the errno values defined by the 1990 ISO/ANSI C standard:

OSKIT_EDOM
Argument out of domain
OSKIT_ERANGE
Result too large

The following symbols correspond to the errno values defined by the 1990 POSIX.1 standard; although many of them are never actually generated by existing OSKit components, the full set is included for completeness:

OSKIT_E2BIG
Argument list too long
OSKIT_EACCES
Permission denied
OSKIT_EAGAIN
Resource temporarily unavailable
OSKIT_EBADF
Bad file descriptor
OSKIT_EBUSY
Device busy
OSKIT_ECHILD
No child processes
OSKIT_EDEADLK
Resource deadlock avoided
OSKIT_EEXIST
File exists
OSKIT_EFAULT
Bad address. This is the same as OSKIT_E_POINTER.
OSKIT_EFBIG
File too large
OSKIT_EINTR
Interrupted system call
OSKIT_EINVAL
Invalid argument. This is the same as OSKIT_E_INVALIDARG.
OSKIT_EIO
Input/output error
OSKIT_EISDIR
Is a directory
OSKIT_EMFILE
Too many open files
OSKIT_EMLINK
Too many links
OSKIT_ENAMETOOLONG
File name too long
OSKIT_ENFILE
Max files open in system
OSKIT_ENODEV
Operation not supported by device
OSKIT_ENOENT
No such file or directory
OSKIT_ENOEXEC
Exec format error
OSKIT_ENOLCK
No locks available
OSKIT_ENOMEM
Cannot allocate memory. This is the same as OSKIT_E_OUTOFMEMORY.
OSKIT_ENOSPC
No space left on device
OSKIT_ENOSYS
Function not implemented. This is the same as OSKIT_E_NOTIMPL.
OSKIT_ENOTDIR
Not a directory
OSKIT_ENOTEMPTY
Directory not empty
OSKIT_ENOTTY
Inappropriate ioctl
OSKIT_ENXIO
Device not configured
OSKIT_EPERM
Operation not permitted. This is the same as OSKIT_E_ACCESSDENIED.
OSKIT_EPIPE
Broken pipe
OSKIT_EROFS
Read-only file system
OSKIT_ESPIPE
Illegal seek
OSKIT_ESRCH
No such process
OSKIT_EXDEV
Cross-device link

The following symbols correspond to the errno values added by the 1993 POSIX.1 standard (real-time extensions); although most of them are never actually generated by existing OSKit components, they are included for completeness:

OSKIT_EBADMSG
Bad message
OSKIT_ECANCELED
Operation canceled
OSKIT_EINPROGRESS
Operation in progress
OSKIT_EMSGSIZE
Bad message buffer length
OSKIT_ENOTSUP
Not supported

The following symbol corresponds to the errno value added by the 1996 POSIX.1 standard:

OSKIT_ETIMEDOUT
Operation timed out

The following symbols correspond to the errno values defined by the 1994 X/Open Unix CAE standard, and not defined by one of the above standards. Most of them are related to networking, and are therefore used by the OSKit networking components; a few are not used at all by the OSKit (such as the ``reserved'' and STREAMS-related codes), but are included for completeness.

OSKIT_EADDRINUSE
Address in use
OSKIT_EADDRNOTAVAIL
Address not available
OSKIT_EAFNOSUPPORT
Address family unsupported
OSKIT_EALREADY
Already connected
OSKIT_ECONNABORTED
Connection aborted
OSKIT_ECONNREFUSED
Connection refused
OSKIT_ECONNRESET
Connection reset
OSKIT_EDESTADDRREQ
Destination address required
OSKIT_EDQUOT
Reserved
OSKIT_EHOSTUNREACH
Host is unreachable
OSKIT_EIDRM
Identifier removed
OSKIT_EILSEQ
Illegal byte sequence
OSKIT_EISCONN
Connection in progress
OSKIT_ELOOP
Too many symbolic links
OSKIT_EMULTIHOP
Reserved
OSKIT_ENETDOWN
Network is down
OSKIT_ENETUNREACH
Network unreachable
OSKIT_ENOBUFS
No buffer space available
OSKIT_ENODATA
No message is available
OSKIT_ENOLINK
Reserved
OSKIT_ENOMSG
No message of desired type
OSKIT_ENOPROTOOPT
Protocol not available
OSKIT_ENOSR
No STREAM resources
OSKIT_ENOSTR
Not a STREAM
OSKIT_ENOTCONN
Socket not connected
OSKIT_ENOTSOCK
Not a socket
OSKIT_EOPNOTSUPP
Operation not supported on socket
OSKIT_EOVERFLOW
Value too large
OSKIT_EPROTO
Protocol error
OSKIT_EPROTONOSUPPORT
Protocol not supported
OSKIT_EPROTOTYPE
Socket type not supported
OSKIT_ESTALE
Reserved
OSKIT_ETIME
Stream ioctl timeout
OSKIT_ETXTBSY
Text file busy
OSKIT_EWOULDBLOCK
Operation would block


next up previous contents index
Next: 4.7 oskit_iunknown: base interface Up: 4.6 COM Header Files Previous: 4.6.1 com.h: basic COM

University of Utah Flux Research Group