CMS 3D CMS Logo

SysErr.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_SYS_ERR_H
00002 # define CLASSLIB_SYS_ERR_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/sysapi/system.h"
00007 
00008 namespace lat {
00009 namespace SysErr {
00010         
00011 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00012 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00013 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00014 
00015     enum Code
00016     {
00017         ErrNone = 0,
00018         ErrUnknown,
00019 
00020         // errno
00021         ErrOperationNotPermitted,               // EPERM, NOT_OWNER
00022         ErrNoSuchEntity,                        // ENOENT, FILE_NOT_FOUND, PATH_NOT_FOUND
00023         ErrNoSuchProcess,                       // ESRCH
00024         ErrInterruptedSystemCall,               // EINTR, WSAEINTR, INVALID_AT_INTERRUPT_TIME
00025         ErrIO,                                  // EIO, NO_SIGNAL_SENT, IO_DEVICE, CRC
00026         ErrNoSuchDeviceOrAddress,               // ENXIO, FILE_INVALID
00027         ErrArgListTooLong,                      // E2BIG
00028         ErrExecFormat,                          // ENOEXEC
00029         ErrBadFileNumber,                       // EBADF, WSAEBADF, INVALID_HANDLE
00030         ErrNoChildProcesses,                    // ECHILD
00031         ErrTryAgain,                            // EAGAIN, EWOULDBLOCK, WSAEWOULDBLOCK, MORE_DATA, OPEN_FILES, ACTIVE_CONNECTIONS, DEVICE_IN_USE
00032         ErrOutOfMemory,                         // ENOMEM, NOT_ENOUGH_MEMORY
00033         ErrPermissionDenied,                    // EACCES, WSAEACCESS, ACCESS_DENIED, SHARING_VIOLATION, LOCK_VIOLATION
00034         ErrBadAddress,                          // EFAULT, WSAEFAULT, PROCESS_ABORTED, NOACCESS
00035         ErrBlockDeviceRequired,                 // ENOTBLK
00036         ErrDeviceOrResourceBusy,                // EBUSY, PIPE_BUSY, PIPE_CONNECTED
00037         ErrFileExists,                          // EEXIST, ENOTEMPTY, WSAENOTEMPTY, ALREADY_EXISTS
00038         ErrCrossDeviceLink,                     // EXDEV, NOT_SAME_DEVICE
00039         ErrNoSuchDevice,                        // ENODEV, BAD_UNIT, BAD_DEVICE
00040         ErrNotDirectory,                        // ENOTDIR, DIRECTORY
00041         ErrIsDirectory,                         // EISDIR
00042         ErrInvalidArgument,                     // EINVAL, WSAEINVAL, INVALID_DATA, FILENAME_EXCED_RANGE, META_EXPANSION_TOO_LONG, INVALID_SIGNAL_NUMBER, THREAD_1_INACTIVE, BAD_PIPE, NO_TOKEN, BAD_USERNAME, NEGATIVE_SEEK
00043         ErrFileTableOverflow,                   // ENFILE, NO_MORE_FILES(ENMFILE?)
00044         ErrTooManyOpenFiles,                    // EMFILE, WSAEMFILE, TOO_MANY_OPEN_FILES
00045         ErrNotTTY,                              // ENOTTY
00046         ErrTextFileBusy,                        // ETXTBSY
00047         ErrFileTooLarge,                        // EFBIG
00048         ErrNoSpaceLeftOnDevice,                 // ENOSPC, HANDLE_DISK_FULL, END_OF_MEDIA, EOM_OVERFLOW, NO_DATA_DETECTED, DISK_FULL
00049         ErrIllegalSeek,                         // ESPIPE, BEGINNING_OF_MEDIA, SETMARK_DETECTED
00050         ErrReadOnlyFileSystem,                  // EROFS, WRITE_PROTECT
00051         ErrTooManyLinks,                        // EMLINK
00052         ErrBrokenPipe,                          // EPIPE
00053         ErrMathArgumentOutOfDomain,             // EDOM
00054         ErrMathResultOutOfRange,                // ERANGE
00055         ErrResourceDeadlockWouldOccur,          // EDEADLK, EDEADLOCK, POSSIBLE_DEADLOCK
00056         ErrFileNameTooLong,                     // ENAMETOOLONG, WSAENAMETOOLONG
00057         ErrNoLocksAvailable,                    // ENOLCK, SHARING_BUFFER_EXCEEDED
00058         ErrFunctionNotImplemented,              // ENOSYS, NOT_SUPPORTED
00059         ErrTooManySymbolicLinks,                // ELOOP, WSAELOOP
00060         ErrNoRequestedMessage,                  // ENOMSG
00061         ErrIdentifierRemoved,                   // EIDRM
00062         ErrChannelOutOfRange,                   // ECHRNG
00063         ErrLevel2NotSynchronised,               // EL2NSYNC
00064         ErrLevel3Halted,                        // EL3HLT
00065         ErrLevel3Reset,                         // EL3RST
00066         ErrLinkNumberOutOfRange,                // ELNRNG
00067         ErrProtocolDriverNotAtached,            // EUNATCH
00068         ErrNoCSIStructure,                      // ENOCSI
00069         ErrLevel2Halted,                        // EL2HLT
00070         ErrInvalidExchange,                     // EBADE
00071         ErrInvalidRequestDescriptor,            // EBADR
00072         ErrExchangeFull,                        // EXFULL
00073         ErrNoANode,                             // ENOANO
00074         ErrInvalidRequestCode,                  // EBADRQC, INVALID_FUNCTION
00075         ErrInvalidSlot,                         // EBADSLT
00076         ErrBadFontFileFormat,                   // EBFONT
00077         ErrDeviceNotStream,                     // ENOSTR
00078         ErrNoDataAvailable,                     // ENODATA, HANDLE_EOF
00079         ErrTimerExpired,                        // ETIME
00080         ErrOutOfStreamsResources,               // ENOSR
00081         ErrNoNetwork,                           // ENONET, REM_NOT_LIST
00082         ErrPackageNotInstalled,                 // ENOPKG
00083         ErrObjectIsRemote,                      // EREMOTE, WSAEREMOTE
00084         ErrSeveredLink,                         // ENOLINK, NOT_CONNECTED
00085         ErrAdvertise,                           // EADV
00086         ErrSrmount,                             // ESRMNT
00087         ErrOnSendCommunication,                 // ECOMM, PIPE_NOT_CONNECTED, PIPE_LISTENING
00088         ErrProtocol,                            // EPROTO
00089         ErrMultihopAttempted,                   // EMULTIHOP
00090         ErrRFSSpecific,                         // EDOTDOT
00091         ErrNotDataMessage,                      // EBADMSG
00092         ErrValueTooLarge,                       // EOVERFLOW
00093         ErrNameNotUniqueOnNetwork,              // ENOTUNIQ, DUP_NAME
00094         ErrBadFileDescriptorState,              // EBADFD
00095         ErrRemoteAddressChanged,                // EREMCHG
00096         ErrInaccessibleSharedLibrary,           // ELIBACC
00097         ErrCorruptedSharedLibrary,              // ELIBBAD
00098         ErrCorruptedLibrarySection,             // ELIBSCN
00099         ErrTooManySharedLibraries,              // ELIBMAX
00100         ErrCannotExecuteSharedLibrary,          // ELIBEXEC
00101         ErrIllegalByteSequence,                 // EILSEQ
00102         ErrRestartSystemCall,                   // ERESTART
00103         ErrStreamsPipe,                         // ESTRPIPE
00104         ErrTooManyUsers,                        // EUSERS, WSAEUSERS
00105         ErrNotSocket,                           // ENOTSOCK, WSAENOTSOCK
00106         ErrDestinationAddressRequired,          // EDESTADDRREQ, WSAEDESTADDRREQ
00107         ErrMessageTooLong,                      // EMSGSIZE, WSAEMSGSIZE
00108         ErrWrongProtocolType,                   // EPROTOTYPE, WSAEPROTOTYPE
00109         ErrUnavailableProtocol,                 // ENOPROTOOPT, WSAENOPROTOOPT
00110         ErrUnsupportedProtocol,                 // EPROTONOSUPPORT, WSAEPROTONOSUPPORT
00111         ErrUnsupportedSocketType,               // ESOCKTNOSUPPORT, WSAESOCKTNOSUPPORT
00112         ErrUnsupportedProtocolFamily,           // EPFNOSUPPORT, WSAEPFNOSUPPORT
00113         ErrUnsupportedAdressFamily,             // EAFNOSUPPORT, WSAEAFNOSUPPORT
00114         ErrAddressInUse,                        // EADDRINUSE, WSAEADDRINUSE
00115         ErrAddressNotAvailable,                 // EADDRNOTAVAIL, WSAEADDRNOTAVAIL
00116         ErrNetworkDown,                         // ENETDOWN, WSAENETDOWN
00117         ErrNetworkUnreachable,                  // ENETUNREACH, WSAENETUNREACH
00118         ErrNetworkReset,                        // ENETRESET, WSAENETRESET
00119         ErrConnectionAborted,                   // ECONNABORTED, WSAECONNABORTED
00120         ErrConnectionResetByPeer,               // ECONNRESET, WSAECONNRESET
00121         ErrNoBuffersAvailable,                  // ENOBUFS, WSAENOBUFS
00122         ErrAlreadyConnected,                    // EISCONN, WSAEISCONN
00123         ErrNotConnected,                        // ENOTCONN, WSAENOTCONN
00124         ErrConnectionAlreadyShutDown,           // ESHUTDOWN, WSAESHUTDOWN
00125         ErrTooManyReferences,                   // ETOOMANYREFS, WSAETOOMANYREFS
00126         ErrConnectionTimedOut,                  // ETIMEDOUT, WSAETIMEDOUT
00127         ErrConnectionRefused,                   // ECONNREFUSED, WSAECONNREFUSED
00128         ErrHostDown,                            // EHOSTDOWN, WSAEHOSTDOWN
00129         ErrNoRouteToHost,                       // EHOSTUNREACH, WSAEHOSTUNREACH
00130         ErrOperationAlreadyInProgress,          // EALREADY, WSAEALREADY
00131         ErrOperationInProgress,                 // EINPROGRESS, WSAEINPROGRESS
00132         ErrStaleNFSHandle,                      // ESTALE, WSAESTALE
00133         ErrStructureNeedsCleaning,              // EUCLEAN
00134         ErrNotNamedTypeFile,                    // ENOTNAM
00135         ErrNoSemaphoresAvailable,               // ENAVAIL
00136         ErrIsNamedTypeFile,                     // EISNAM
00137         ErrRemoteIO,                            // EREMOTEIO
00138         ErrQuotaExceeded,                       // EDQUOT
00139         ErrNoMediumFound,                       // ENOMEDIUM, NOT_READY
00140         ErrWrongMediumType,                     // EMEDIUMTYPE
00141         ErrOperationNotSupported,               // ENOTSUP, EOPNOTSUPP, WSAEOPNOTSUPP
00142         ErrOperationCanceled,                   // ECANCELED
00143         ErrProcessDiedWithLock,                 // EOWNERDEAD
00144         ErrLockNotRecovarable,                  // ENOTRECOVERABLE
00145         ErrLockUnmapped,                        // ELOCKUNMAPPED
00146         ErrNoSuchSymbolInExecutable,            // ENOSYM
00147         ErrRemotePeerReleasedConnection,        // EREMOTERELEASE
00148 
00149         // FIXME
00150         ErrNoSuchShare,                         // ENOSHARE, BAD_NETPATH, BAD_NET_NAME // no such host or network path
00151         ErrProcessLimitExceeded,                // EPROCLIM, WSAEPROCLIM
00152         ErrDiskQuotaExceeded,                   // EDQUOT, WSAEDQUOT
00153 
00154         ErrNotInitialised,                      // WSANOTINITIALISED
00155         ErrSystemNotReady,                      // WSASYSNOTREADY
00156         ErrVersionNotSupported,                 // WSAVERNOTSUPPORTED
00157 
00158         // h_errno
00159         ErrHostNotFound,                        // HOST_NOT_FOUND, WSAHOST_NOT_FOUND
00160         ErrHostTryAgain,                        // TRY_AGAIN, WSATRY_AGAIN
00161         ErrHostNonRecoverableError,             // NO_RECOVERY, WSANO_RECOVERY
00162         ErrHostNoDataRecord,                    // NO_DATA, WSANO_DATA
00163         ErrHostNoAddressRecord                  // NO_ADDRESS
00164     };
00165 
00166 
00167 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00168 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00169 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00170 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00171 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00172 } // namespace SysErr
00173 } // namespace lat
00174 
00175 #endif // CLASSLIB_SYS_ERR_H

Generated on Tue Jun 9 17:38:55 2009 for CMSSW by  doxygen 1.5.4