From: Alan Cox Date: Wed, 13 Jan 2016 18:37:38 +0000 (+0000) Subject: net: add ECONNRESET X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f29b6190c6e238d4e56f35a1f96f0f359cf8be7d;p=FUZIX.git net: add ECONNRESET --- diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 402bb4dc..84af6d41 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -575,6 +575,8 @@ struct s_argblk { #define EPFNOSUPPORT 43 /* Protocol not supported */ #define EOPNOTSUPP 44 /* Operation not supported on transport endpoint */ +#define ECONNRESET 45 /* Connection reset by peer */ + /* * ioctls for kernel internal operations start at 0x8000 and cannot be issued * by userspace. diff --git a/Library/include/errno.h b/Library/include/errno.h index 39a027d6..cb7f1457 100644 --- a/Library/include/errno.h +++ b/Library/include/errno.h @@ -55,8 +55,8 @@ #define ENOSYS 42 /* No such system call */ #define EPFNOSUPPORT 43 /* Protocol not supported */ #define EOPNOTSUPP 43 /* Operation not supported on transport endpoint */ - -#define __ERRORS 44 +#define ECONNRESET 44 /* Connection reset by peer */ +#define __ERRORS 45 extern int sys_nerr; extern char *sys_errlist[]; diff --git a/Library/tools/liberror.c b/Library/tools/liberror.c index cc937f47..bed40d45 100644 --- a/Library/tools/liberror.c +++ b/Library/tools/liberror.c @@ -3,8 +3,8 @@ #include #include -#define ERRORS 44 -const char *err[44] = { +#define ERRORS 45 +const char *err[45] = { "Success", "Operation not permitted", "No such file or directory", @@ -48,7 +48,8 @@ const char *err[44] = { "Address not available", "Invalid system call number", "Protocol family not supported", - "Operation not supported on transport endpoint" + "Operation not supported on transport endpoint", + "Connection reset by peer" }; static uint8_t buf[16384];