]> git.sur5r.net Git - cc65/commitdiff
Added EBADF since this is required for fileno().
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:12:23 +0000 (21:12 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:12:23 +0000 (21:12 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4696 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/errno.inc
include/errno.h

index 8f79d94e9e4fdbfd3b65004a4a81c0c0fa1b2248..82d01cd3b68b7f686f92245fe5b488153fef6427 100644 (file)
@@ -28,6 +28,7 @@
         ENOSYS                         ; Function not implemented
         ESPIPE                         ; Illegal seek
         ERANGE                  ; Range error
+        EBADF                   ; Bad file number
         EUNKNOWN                       ; Unknown OS specific error - must be last!
 
         EMAX    = EUNKNOWN      ; Highest error code
index 5dba2a1f7b9c8b88bc7795507202b21a42014083..c0e7866237af7db989367dc142bd973eacb9b9fb 100644 (file)
@@ -74,7 +74,8 @@ extern int _errno;
 #define ENOSYS         13      /* Function not implemented */
 #define ESPIPE         14      /* Illegal seek */
 #define ERANGE          15      /* Range error */
-#define EUNKNOWN               16      /* Unknown OS specific error */
+#define EBADF           16      /* Bad file number */
+#define EUNKNOWN               17      /* Unknown OS specific error */