Navit SVN

/work/compile/navit/src/navit/support/libc/errno.h

00001 
00006 #ifndef _ERRNO_2_H_
00007 #define _ERRNO_2_H_
00008 
00009 #ifndef RC_INVOKED
00010 
00011 #ifdef  __cplusplus
00012 extern "C" {
00013 #endif
00014 
00015 extern int errno;
00016 int* _errno(void);
00017 char *strerror(int num);
00018 
00019 #ifdef  __cplusplus
00020 }
00021 #endif
00022 
00023 #endif /* Not RC_INVOKED */
00024 
00025 
00026 #define EPERM      1  /* Operation not permitted */
00027 #define ENOFILE    2  /* No such file or directory */
00028 #define ENOENT     2
00029 #define ESRCH      3  /* No such process */
00030 #define EINTR      4  /* Interrupted function call */
00031 #define EIO        5  /* Input/output error */
00032 #define ENXIO      6  /* No such device or address */
00033 #define E2BIG      7  /* Arg list too long */
00034 #define ENOEXEC    8  /* Exec format error */
00035 #define EBADF      9  /* Bad file descriptor */
00036 #define ECHILD    10  /* No child processes */
00037 #define EAGAIN    11  /* Resource temporarily unavailable */
00038 #define ENOMEM    12  /* Not enough space */
00039 #define EACCES    13  /* Permission denied */
00040 #define EFAULT    14  /* Bad address */
00041 /* 15 - Unknown Error */
00042 #define EBUSY     16  /* strerror reports "Resource device" */
00043 #define EEXIST    17  /* File exists */
00044 #define EXDEV     18  /* Improper link (cross-device link?) */
00045 #define ENODEV    19  /* No such device */
00046 #define ENOTDIR   20  /* Not a directory */
00047 #define EISDIR    21  /* Is a directory */
00048 #define EINVAL    22  /* Invalid argument */
00049 #define ENFILE    23  /* Too many open files in system */
00050 #define EMFILE    24  /* Too many open files */
00051 #define ENOTTY    25  /* Inappropriate I/O control operation */
00052 /* 26 - Unknown Error */
00053 #define EFBIG     27  /* File too large */
00054 #define ENOSPC    28  /* No space left on device */
00055 #define ESPIPE    29  /* Invalid seek (seek on a pipe?) */
00056 #define EROFS     30  /* Read-only file system */
00057 #define EMLINK    31  /* Too many links */
00058 #define EPIPE     32  /* Broken pipe */
00059 #define EDOM      33  /* Domain error (math functions) */
00060 #define ERANGE    34  /* Result too large (possibly too small) */
00061 /* 35 - Unknown Error */
00062 #define EDEADLOCK 36  /* Resource deadlock avoided (non-Cyg) */
00063 #define EDEADLK   36
00064 /* 37 - Unknown Error */
00065 #define ENAMETOOLONG 38  /* Filename too long (91 in Cyg?) */
00066 #define ENOLCK    39  /* No locks available (46 in Cyg?) */
00067 #define ENOSYS    40  /* Function not implemented (88 in Cyg?) */
00068 #define ENOTEMPTY 41  /* Directory not empty (90 in Cyg?) */
00069 #define EILSEQ    42  /* Illegal byte sequence */
00070 
00071 #endif /* Not _ERRNO_2_H_ */
00072