+++ /dev/null
-/** @file\r
- The header <sys/errno.h> defines several values, all relating to the reporting of\r
- error conditions.\r
-\r
- The enum members expand to integral constant expressions\r
- with distinct nonzero values, suitable for use in #if preprocessing\r
- directives. These default values are specified as an enum in order to ease\r
- the maintenance of the values.\r
-\r
- Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available under\r
- the terms and conditions of the BSD License that accompanies this distribution.\r
- The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-**/\r
-#ifdef _ERRNO_H // May only be included from <errno.h>\r
-#ifndef _SYS_ERRNO_H\r
-#define _SYS_ERRNO_H\r
-\r
-/* Define the error numbers, sequentially, beginning at 1. */\r
-enum {\r
- __ESUCCESS = 0, /* 0 For those rare times one needs to say all is OK */\r
- __EMINERRORVAL = 1, /* The lowest valid error value */\r
- __EPERM = __EMINERRORVAL, /* 1 Operation not permitted */\r
- __ENOENT, /* 2 No such file or directory */\r
- __ESRCH, /* 3 No such process */\r
- __EINTR, /* 4 Interrupted system call */\r
- __EIO, /* 5 Input/output error */\r
- __ENXIO, /* 6 Device not configured */\r
- __E2BIG, /* 7 Argument list too long */\r
- __ENOEXEC, /* 8 Exec format error */\r
- __EBADF, /* 9 Bad file descriptor */\r
- __ECHILD, /* 10 No child processes */\r
- __EDEADLK, /* 11 Resource deadlock avoided */\r
- __ENOMEM, /* 12 Cannot allocate memory */\r
- __EACCES, /* 13 Permission denied */\r
- __EFAULT, /* 14 Bad address */\r
- __ENOTBLK, /* 15 Block device required */\r
- __EBUSY, /* 16 Device busy */\r
- __EEXIST, /* 17 File exists */\r
- __EXDEV, /* 18 Cross-device link */\r
- __ENODEV, /* 19 Operation not supported by device */\r
- __ENOTDIR, /* 20 Not a directory */\r
- __EISDIR, /* 21 Is a directory */\r
- __EINVAL, /* 22 Invalid argument */\r
- __ENFILE, /* 23 Too many open files in system */\r
- __EMFILE, /* 24 Too many open file descriptors */\r
- __ENOTTY, /* 25 Inappropriate ioctl for device */\r
- __ETXTBSY, /* 26 Text file busy */\r
- __EFBIG, /* 27 File too large */\r
- __ENOSPC, /* 28 No space left on device */\r
- __ESPIPE, /* 29 Illegal seek */\r
- __EROFS, /* 30 Read-only filesystem */\r
- __EMLINK, /* 31 Too many links */\r
- __EPIPE, /* 32 Broken pipe */\r
-\r
- /* math software -- these are the only two values required by the C Standard */\r
- __EDOM, /* 33 Numerical argument out of domain */\r
- __ERANGE, /* 34 Result too large */\r
-\r
- /* non-blocking and interrupt i/o */\r
- __EAGAIN, /* 35 Resource temporarily unavailable */\r
- __EWOULDBLOCK = __EAGAIN, /* 35 Operation would block */\r
- __EINPROGRESS, /* 36 Operation now in progress */\r
- __EALREADY, /* 37 Operation already in progress */\r
-\r
- /* ipc/network software -- argument errors */\r
- __ENOTSOCK, /* 38 Socket operation on non-socket */\r
- __EDESTADDRREQ, /* 39 Destination address required */\r
- __EMSGSIZE, /* 40 Message too long */\r
- __EPROTOTYPE, /* 41 Protocol wrong type for socket */\r
- __ENOPROTOOPT, /* 42 Protocol not available */\r
- __EPROTONOSUPPORT, /* 43 Protocol not supported */\r
- __ESOCKTNOSUPPORT, /* 44 Socket type not supported */\r
- __EOPNOTSUPP, /* 45 Operation not supported */\r
- __ENOTSUP = __EOPNOTSUPP, /* 45 Operation not supported */\r
- __EPFNOSUPPORT, /* 46 Protocol family not supported */\r
- __EAFNOSUPPORT, /* 47 Address family not supported by protocol family */\r
- __EADDRINUSE, /* 48 Address already in use */\r
- __EADDRNOTAVAIL, /* 49 Can't assign requested address */\r
-\r
- /* ipc/network software -- operational errors */\r
- __ENETDOWN, /* 50 Network is down */\r
- __ENETUNREACH, /* 51 Network is unreachable */\r
- __ENETRESET, /* 52 Network dropped connection on reset */\r
- __ECONNABORTED, /* 53 Software caused connection abort */\r
- __ECONNRESET, /* 54 Connection reset by peer */\r
- __ENOBUFS, /* 55 No buffer space available */\r
- __EISCONN, /* 56 Socket is already connected */\r
- __ENOTCONN, /* 57 Socket is not connected */\r
- __ESHUTDOWN, /* 58 Can't send after socket shutdown */\r
- __ETOOMANYREFS, /* 59 Too many references: can't splice */\r
- __ETIMEDOUT, /* 60 Operation timed out */\r
- __ECONNREFUSED, /* 61 Connection refused */\r
- __ELOOP, /* 62 Too many levels of symbolic links */\r
- __ENAMETOOLONG, /* 63 File name too long */\r
- __EHOSTDOWN, /* 64 Host is down */\r
- __EHOSTUNREACH, /* 65 No route to host */\r
-\r
- __ENOTEMPTY, /* 66 Directory not empty */\r
-\r
- /* quotas, etc. */\r
- __EPROCLIM, /* 67 Too many processes */\r
- __EUSERS, /* 68 Too many users */\r
- __EDQUOT, /* 69 Disc quota exceeded */\r
-\r
- /* Network File System */\r
- __ESTALE, /* 70 Stale NFS file handle */\r
- __EREMOTE, /* 71 Too many levels of remote in path */\r
- __EBADRPC, /* 72 RPC struct is bad */\r
- __ERPCMISMATCH, /* 73 RPC version wrong */\r
- __EPROGUNAVAIL, /* 74 RPC prog. not avail */\r
- __EPROGMISMATCH, /* 75 Program version wrong */\r
- __EPROCUNAVAIL, /* 76 Bad procedure for program */\r
- __ENOLCK, /* 77 No locks available */\r
- __ENOSYS, /* 78 Function not implemented */\r
- __EFTYPE, /* 79 Inappropriate file type or format */\r
- __EAUTH, /* 80 Authentication error */\r
- __ENEEDAUTH, /* 81 Need authenticator */\r
- __EIDRM, /* 82 Identifier removed */\r
- __ENOMSG, /* 83 No message of desired type */\r
- __EOVERFLOW, /* 84 Value too large to be stored in data type */\r
- __EILSEQ, /* 85 Illegal byte sequence */\r
- __ENOTHING_1, /* 86 Place Holder */\r
- __ECANCELED, /* 87 Operation canceled */\r
-\r
- __EBADMSG, /* 88 Bad message */\r
- __ENODATA, /* 89 No message available */\r
- __ENOSR, /* 90 No STREAM resources */\r
- __ENOSTR, /* 91 Not a STREAM */\r
- __ETIME, /* 92 STREAM ioctl timeout */\r
-\r
- __ENOATTR, /* 93 Attribute not found */\r
-\r
- __EDOOFUS, /* 94 Programming error */\r
-\r
- __EMULTIHOP, /* 95 Multihop attempted */\r
- __ENOLINK, /* 96 Link has been severed */\r
- __EPROTO, /* 97 Protocol error */\r
-\r
- __EBUFSIZE, /* 98 Buffer too small to hold result */\r
-\r
- __EMAXERRORVAL /* One more than the highest defined error value. */\r
-};\r
-\r
-#endif /* _SYS_ERRNO_H */\r
-#else /* not defined _ERRNO_H */\r
-#error <sys/errno.h> must only be included by <errno.h>.\r
-#endif /* _ERRNO_H */\r