From: cuz Date: Tue, 12 Aug 2003 13:48:45 +0000 (+0000) Subject: New error code ERANGE X-Git-Tag: V2.12.0~1452 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20e805a124a611b0bb8f286d5f8c98863c3e9792;p=cc65 New error code ERANGE git-svn-id: svn://svn.cc65.org/cc65/trunk@2274 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/asminc/errno.inc b/asminc/errno.inc index b3464fdea..f541a7843 100644 --- a/asminc/errno.inc +++ b/asminc/errno.inc @@ -21,7 +21,8 @@ EIO = 11 ; I/O error EINTR = 12 ; Interrupted system call ENOSYS = 13 ; Function not implemented ESPIPE = 14 ; Illegal seek -EUNKNOWN = 15 ; Unknown OS specific error - must be last! +ERANGE = 15 ; Range error +EUNKNOWN = 16 ; Unknown OS specific error - must be last! -EMAX = 15 ; Highest error code +EMAX = 16 ; Highest error code diff --git a/include/errno.h b/include/errno.h index e945acf34..edb4a0e87 100644 --- a/include/errno.h +++ b/include/errno.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2003 Ullrich von Bassewitz */ +/* Römerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -70,7 +70,8 @@ extern int _errno; #define EINTR 12 /* Interrupted system call */ #define ENOSYS 13 /* Function not implemented */ #define ESPIPE 14 /* Illegal seek */ -#define EUNKNOWN 15 /* Unknown OS specific error */ +#define ERANGE 15 /* Range error */ +#define EUNKNOWN 16 /* Unknown OS specific error */ diff --git a/libsrc/common/errormsg.c b/libsrc/common/errormsg.c index d52daeaae..ee7367056 100644 --- a/libsrc/common/errormsg.c +++ b/libsrc/common/errormsg.c @@ -25,6 +25,7 @@ const char* const _sys_errlist[] = { "Interrupted system call", /* 12 */ "Function not implemented", /* 13 */ "Illegal seek", /* 14 */ + "Range error", /* 15 */ };