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