]> git.sur5r.net Git - cc65/commitdiff
Added messages for EBADF (new) and EUNKNOWN (missing).
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:16:07 +0000 (21:16 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:16:07 +0000 (21:16 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4697 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/errormsg.c

index ee7367056f75f3a15d8b7967018d68364a4efae4..d73ca652c30521c8a82ec2cf93df44693f933b54 100644 (file)
 
 
 const char* const _sys_errlist[] = {
-    "Unknown error",                /*  0 */
-    "No such file or directory",    /*  1 */
-    "Out of memory",                /*  2 */
-    "Permission denied",            /*  3 */
-    "No such device",               /*  4 */
-    "Too many open files",          /*  5 */
-    "Device or resource busy",      /*  6 */
-    "Invalid argument",             /*  7 */
-    "No space left on device",      /*  8 */
-    "File exists",                  /*  9 */
-    "Try again",                    /* 10 */
-    "I/O error",                    /* 11 */
-    "Interrupted system call",      /* 12 */
-    "Function not implemented",     /* 13 */
-    "Illegal seek",                 /* 14 */
-    "Range error",                  /* 15 */
+    "Unknown error",                /* 0 */
+    "No such file or directory",    /* ENOENT */
+    "Out of memory",                /* ENOMEM */
+    "Permission denied",            /* EACCES */
+    "No such device",               /* ENODEV */
+    "Too many open files",          /* EMFILE */
+    "Device or resource busy",      /* EBUSY */
+    "Invalid argument",             /* EINVAL */
+    "No space left on device",      /* ENOSPC */
+    "File exists",                  /* EEXIST */
+    "Try again",                    /* EAGAIN */
+    "I/O error",                    /* EIO */
+    "Interrupted system call",      /* EINTR */
+    "Function not implemented",     /* ENOSYS */
+    "Illegal seek",                 /* ESPIPE */
+    "Range error",                  /* ERANGE */
+    "Bad file number",              /* EBADF */
+    "Unknown OS error code",        /* EUNKNOWN */
 };