From: uz Date: Thu, 3 Jun 2010 21:12:23 +0000 (+0000) Subject: Added EBADF since this is required for fileno(). X-Git-Tag: V2.13.3~736 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d877aac5f49c0c57168ed19b9b0247299e29f934;p=cc65 Added EBADF since this is required for fileno(). git-svn-id: svn://svn.cc65.org/cc65/trunk@4696 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/asminc/errno.inc b/asminc/errno.inc index 8f79d94e9..82d01cd3b 100644 --- a/asminc/errno.inc +++ b/asminc/errno.inc @@ -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 diff --git a/include/errno.h b/include/errno.h index 5dba2a1f7..c0e786623 100644 --- a/include/errno.h +++ b/include/errno.h @@ -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 */