#ifndef __ERRNODEF_LOADED #define __ERRNODEF_LOADED 1 /**************************************************************************** ** ** - VMS Status Code Equivalents for UNIX-style Error Codes ** ***************************************************************************** ** Header is nonstandard ***************************************************************************** ** ** Copyright 2004 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif /* ** Extern model */ #pragma __extern_model __save #pragma __extern_model __globalvalue /* ** Define the external constants */ extern C$_EPERM; /* not owner */ extern C$_ENOENT; /* no such file or directory */ extern C$_ESRCH; /* no such process */ extern C$_EINTR; /* interrupted system call */ extern C$_EIO; /* i/o error */ extern C$_ENXIO; /* no such device or address */ extern C$_E2BIG; /* arg list too long */ extern C$_ENOEXEC; /* exec format error */ extern C$_EBADF; /* bad file number */ extern C$_ECHILD; /* no children */ extern C$_EAGAIN; /* no more processes */ extern C$_ENOMEM; /* not enough core */ extern C$_EACCES; /* permission denied */ extern C$_EFAULT; /* bad address */ extern C$_ENOTBLK; /* block device required */ extern C$_EBUSY; /* mount device busy */ extern C$_EEXIST; /* file exists */ extern C$_EXDEV; /* cross-device link */ extern C$_ENODEV; /* no such device */ extern C$_ENOTDIR; /* not a directory */ extern C$_EISDIR; /* is a directory */ extern C$_EINVAL; /* invalid argument */ extern C$_ENFILE; /* file table overflow */ extern C$_EMFILE; /* too many open files */ extern C$_ENOTTY; /* not a typewriter */ extern C$_ETXTBSY; /* text file busy */ extern C$_EFBIG; /* file too large */ extern C$_ENOSPC; /* no space left on device */ extern C$_ESPIPE; /* illegal seek */ extern C$_EROFS; /* read-only file system */ extern C$_EMLINK; /* too many links */ extern C$_EPIPE; /* broken pipe */ extern C$_EDOM; /* math argument */ extern C$_ERANGE; /* result too large */ extern C$_EWOULDBLOCK; /* I/O operation would block channel */ extern C$_EINPROGRESS; /* Operation now in progress */ extern C$_EALREADY; /* Operation already in progress */ extern C$_ENOTSOCK; /* Socket operation on non-socket */ extern C$_EDESTADDRREQ; /* Destination address required */ extern C$_EMSGSIZE; /* Message too long */ extern C$_EPROTOTYPE; /* Protocol wrong type for socket */ extern C$_ENOPROTOOPT; /* Protocol not available */ extern C$_EPROTONOSUPPORT; /* Protocol not supported */ extern C$_ESOCKTNOSUPPORT; /* Socket type not supported */ extern C$_EOPNOTSUPP; /* Operation not supported on socket */ extern C$_EPFNOSUPPORT; /* Protocol family not supported */ extern C$_EAFNOSUPPORT; /* Address family not supported */ extern C$_EADDRINUSE; /* Address already in use */ extern C$_EADDRNOTAVAIL; /* Can't assign requested address */ extern C$_ENETDOWN; /* Network is down */ extern C$_ENETUNREACH; /* Network is unreachable */ extern C$_ENETRESET; /* Network dropped connection on reset */ extern C$_ECONNABORTED; /* Software caused connection abort */ extern C$_ECONNRESET; /* Connection reset by peer */ extern C$_ENOBUFS; /* No buffer space available */ extern C$_EISCONN; /* Socket is already connected */ extern C$_ENOTCONN; /* Socket is not connected */ extern C$_ESHUTDOWN; /* Can't send after socket shutdown */ extern C$_ETOOMANYREFS; /* Too many references: can't splice */ extern C$_ETIMEDOUT; /* Connection timed out */ extern C$_ECONNREFUSED; /* Connection refused */ extern C$_ELOOP; /* Too many levels of symbolic links */ extern C$_ENAMETOOLONG; /* File name too long */ extern C$_EHOSTDOWN; /* Host is down */ extern C$_EHOSTUNREACH; /* No route to host */ extern C$_ENOTEMPTY; /* Directory not empty */ extern C$_EPROCLIM; /* Too many processes */ extern C$_EUSERS; /* Too many users */ extern C$_EDQUOT; /* Disk quota exceeded */ extern C$_ENOMSG; /* No message of desired type */ extern C$_EIDRM; /* Identifier removed */ extern C$_EALIGN; /* Alignment error */ extern C$_ESTALE; /* Stale NFS file handle */ extern C$_EREMOTE; /* Too many levels of remote in path */ extern C$_ENOLCK; /* No locks available */ extern C$_ENOSYS; /* Function not implemented */ extern C$_EFTYPE; /* Inappropriate operation for file type */ extern C$_ECANCELED; /* Operation canceled */ extern C$_EFAIL; /* Cannot start operation */ extern C$_EINPROG; /* Asynchronous operation in progress */ extern C$_ENOTSUP; /* Function not implemented */ extern C$_EDEADLK; /* Resource deadlock avoided */ extern C$_ENWAIT; /* No waiting processes */ extern C$_EILSEQ; /* Illegal byte sequence */ extern C$_EBADCAT; /* Bad message catalogue format [1] */ extern C$_EBADMSG; /* Corrupted message detected */ extern C$_EABANDONED; /* Owner can not release resource */ /* ** VMS-specific error codes */ extern C$_ERROR; /* C error condition */ extern C$_INV_FRAME; /* invalid frame while in fork state */ extern C$_KILL; /* process killed, unimpl signal specified */ extern C$_LONGJMP; /* longjump requested */ extern C$_LONGJMP_FAILED; /* attempted longjmp failed */ /* ** New in OpenVMS V6.2 */ #if __CRTL_VER >= 60200000 extern C$_SIGUSR1; /* user signal 1 */ extern C$_SIGUSR2; /* user signal 2 */ extern C$_LOCALEIDMISMAT; /* locale version doesn't match DEC C RTL */ extern C$_LOCALEBAD; /* not a locale file */ extern C$_LOCALEINCOMPLET; /* not all requested categories present */ #endif /* ** New in OpenVMS V7.0 */ #if __CRTL_VER >= 70000000 extern C$_SIG0; /* reserved to Digital */ extern C$_SIGN; /* reserved to Digital */ extern C$_SIGPIPE; /* reserved to Digital */ extern C$_SIGCHLD; /* reserved to Digital */ extern C$_HOST_NOT_FOUND; /* Unknown host */ extern C$_TRY_AGAIN; /* Host name lookup failure */ extern C$_NO_RECOVERY; /* Unknown server error */ extern C$_NO_DATA; /* No data record of requested type */ extern C$_NO_ADDRESS; /* No address associated with name */ extern C$_NO_TCP; /* Cannot find TCP routine or UCX$IPC_SHR */ extern C$_NOSYSSHR; /* Link /NOSYSSHR disables image activate */ extern C$_EXIT1; /* reserved to Digital */ extern C$_EXIT255; /* reserved to Digital */ extern C$_ILLSYSTDF; /* Illegal OpenVMS system TDF */ extern C$_QSORT2BIG; /* Array passed to qsort function ... */ #endif /* ** New in OpenVMS V7.3 */ #if __CRTL_VER >= 70300000 extern C$_SIGWINCH; /* reserved to Digital */ #endif /* ** New in OpenVMS V8.3 */ #if __CRTL_VER >= 80300000 extern C$_SIGTERM; /* reserved to Digital */ extern C$_EOVERFLOW; /* value too large for datatype */ #endif #ifdef __cplusplus } #endif #pragma __extern_model __restore #pragma __standard #endif /* __ERRNODEF_LOADED */