Back to index

glibc  2.9
errno.h
Go to the documentation of this file.
00001 /* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 /* This file defines the `errno' constants.  */
00020 
00021 #if !defined __Emath_defined && (defined _ERRNO_H || defined __need_Emath)
00022 #undef __need_Emath
00023 #define       __Emath_defined      1
00024 
00025 #endif
00026 
00027 #ifdef _ERRNO_H
00028 # undef EDOM
00029 # undef EILSEQ
00030 # undef ERANGE
00031 
00032 # define EPERM              1      /* Operation not permitted.  */
00033 # define ENOENT             2      /* No such file or directory.  */
00034 # define ESRCH              3      /* No such process.  */
00035 # define EINTR              4      /* interrupted system call.  */
00036 # define EIO         5      /* I/O error.  */
00037 # define ENXIO              6      /* No such device or address.  */
00038 # define E2BIG              7      /* Arg list too long.  */
00039 # define ENOEXEC     8      /* Exec format error.  */
00040 # define EBADF              9      /* Bad file descriptor.  */
00041 # define ECHILD             10     /* No child processes.  */
00042 # define EAGAIN             11     /* Resource temporarily unavailable.  */
00043 # define ENOMEM             12     /* Not enough space.  */
00044 # define EACCES             13     /* Permission denied.  */
00045 # define EFAULT             14     /* Bad address.  */
00046 # define ENOTBLK     15     /* Block device required.  */
00047 # define EBUSY              16     /* Resource busy.  */
00048 # define EEXIST             17     /* File exists.  */
00049 # define EXDEV              18     /* Improper link.  */
00050 # define ENODEV             19     /* No such device.  */
00051 # define ENOTDIR     20     /* Not a directory.  */
00052 # define EISDIR             21     /* Is a directory.  */
00053 # define EINVAL             22     /* Invalid argument.  */
00054 # define ENFILE             23     /* Too many open files in system.  */
00055 # define EMFILE             24     /* Too many open files.  */
00056 # define ENOTTY             25     /* Inappropriate I/O control operation.  */
00057 # define ETXTBSY     26     /* Text file busy.  */
00058 # define EFBIG              27     /* File too large.  */
00059 # define ENOSPC             28     /* No space left on device.  */
00060 # define ESPIPE             29     /* Invalid seek.  */
00061 # define EROFS              30     /* Read only file system.  */
00062 # define EMLINK             31     /* Too many links.  */
00063 # define EPIPE              32     /* Broken pipe.  */
00064 # define EDOM        33     /* Domain error within math function.  */
00065 # define ERANGE             34     /* Result too large.  */
00066 # define ENOMSG             35     /* No message of desired type.  */
00067 # define EIDRM              36     /* Identifier removed.  */
00068 # define ECHRNG             37     /* Channel number out of range.  */
00069 # define EL2NSYNC    38     /* Level 2 not synchronized.  */
00070 # define EL3HLT             39     /* Level 3 halted.  */
00071 # define EL3RST             40     /* Level 3 reset.  */
00072 # define ELNRNG             41     /* Link number out of range.  */
00073 # define EUNATCH     42     /* Protocol driver not attached.  */
00074 # define ENOCSI             43     /* No CSI structure available.  */
00075 # define EL2HLT             44     /* Level 2 halted.  */
00076 # define EDEADLK     45     /* Resource deadlock avoided.  */
00077 # define ENOTREADY   46     /* Device not ready.  */
00078 # define EWRPROTECT  47     /* Write-protected media.  */
00079 # define EFORMAT     48     /* Unformatted media.  */
00080 # define ENOLCK             49     /* No locks available.  */
00081 # define ENOCONNECT  50     /* No connection.  */
00082 # define ESTALE             52     /* No filesystem.  */
00083 # define EDIST              53     /* Old, currently unused AIX errno.  */
00084 # if __USE_XOPEN_EXTENDED
00085 #  define EWOULDBLOCK       EAGAIN /* Operation would block.  */
00086 # else /* __USE_XOPEN_EXTENDED */
00087 #  define EWOULDBLOCK       54
00088 # endif /* __USE_XOPEN_EXTENDED */
00089 # define EINPROGRESS 55     /* Operation now in progress.  */
00090 # define EALREADY    56     /* Operation already in progress.  */
00091 # define ENOTSOCK    57     /* Socket operation on non-socket.  */
00092 # define EDESTADDRREQ       58     /* Destination address required.  */
00093 # define EDESTADDREQ EDESTADDRREQ /* Destination address required.  */
00094 # define EMSGSIZE    59     /* Message too long.  */
00095 # define EPROTOTYPE  60     /* Protocol wrong type for socket.  */
00096 # define ENOPROTOOPT 61     /* Protocol not available.  */
00097 # define EPROTONOSUPPORT 62 /* Protocol not supported.  */
00098 # define ESOCKTNOSUPPORT 63 /* Socket type not supported.  */
00099 # define EOPNOTSUPP  64     /* Operation not supported on socket.  */
00100 # define EPFNOSUPPORT       65     /* Protocol family not supported.  */
00101 # define EAFNOSUPPORT       66     /* Address family not supported by protocol
00102                                family.  */
00103 # define EADDRINUSE  67     /* Address already in use.  */
00104 # define EADDRNOTAVAIL      68     /* Can't assign requested address.  */
00105 # define ENETDOWN    69     /* Network is down.  */
00106 # define ENETUNREACH 70     /* Network is unreachable.  */
00107 # define ENETRESET   71     /* Network dropped connection on reset.  */
00108 # define ECONNABORTED       72     /* Software caused connection abort.  */
00109 # define ECONNRESET  73     /* Connection reset by peer.  */
00110 # define ENOBUFS     74     /* No buffer space available.  */
00111 # define EISCONN     75     /* Socket is already connected.  */
00112 # define ENOTCONN    76     /* Socket is not connected.  */
00113 # define ESHUTDOWN   77     /* Can't send after socket shutdown.  */
00114 # define ETIMEDOUT   78     /* Connection timed out.  */
00115 # define ECONNREFUSED       79     /* Connection refused.  */
00116 # define EHOSTDOWN   80     /* Host is down.  */
00117 # define EHOSTUNREACH       81     /* No route to host.  */
00118 # define ERESTART    82     /* Restart the system call.  */
00119 # define EPROCLIM    83     /* Too many processes.  */
00120 # define EUSERS             84     /* Too many users.  */
00121 # define ELOOP              85     /* Too many levels of symbolic links.  */
00122 # define ENAMETOOLONG       86     /* File name too long.  */
00123 # define ENOTEMPTY   EEXIST /* Directory not empty.  */
00124 # define EDQUOT             88     /* Disc quota exceeded.  */
00125 # define ECORRUPT    89     /* Invalid file system control data.  */
00126 # define EREMOTE     93     /* Item is not local to host.  */
00127 # define ENOSYS             109    /* Function not implemented POSIX.  */
00128 # define EMEDIA             110    /* Media surface error.  */
00129 # define ESOFT              111    /* I/O completed, but needs relocation.  */
00130 # define ENOATTR     112    /* No attribute found.  */
00131 # define ESAD        113    /* Security authentication denied.  */
00132 # define ENOTRUST    114    /* Not a trusted program.  */
00133 # define ETOOMANYREFS       115    /* Too many references: can't splice.  */
00134 # define EILSEQ             116    /* Invalid wide character.  */
00135 # define ECANCELED   117    /* Asynchronous i/o cancelled.  */
00136 # define ENOSR              118    /* Temp out of streams resources.  */
00137 # define ETIME              119    /* I_STR ioctl timed out.  */
00138 # define EBADMSG     120    /* Wrong message type at stream head.  */
00139 # define EPROTO             121    /* STREAMS protocol error.  */
00140 # define ENODATA     122    /* No message ready at stream head.  */
00141 # define ENOSTR             123    /* Fd is not a stream.  */
00142 # define ECLONEME    ERESTART /* This is the way we clone a stream.  */
00143 # define ENOTSUP     124    /* POSIX threads unsupported value.  */
00144 # define EMULTIHOP   125    /* Multihop is not allowed.  */
00145 # define ENOLINK     126    /* The link has been severed.  */
00146 # define EOVERFLOW   127    /* Value too large to be stored in data type.*/
00147 #endif
00148 
00149 #if !defined _ERRNO_H && defined __need_Emath
00150 # define EDOM 33     /* Math argument out of domain of function.  */
00151 # define EILSEQ      116    /* Illegal byte sequence.  */
00152 # define ERANGE      34     /* Math result not representable.  */
00153 #endif /* !_ERRNO_H && __need_Emath */