net: add ECONNRESET
authorAlan Cox <alan@linux.intel.com>
Wed, 13 Jan 2016 18:37:38 +0000 (18:37 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 13 Jan 2016 18:37:38 +0000 (18:37 +0000)
Kernel/include/kernel.h
Library/include/errno.h
Library/tools/liberror.c

index 402bb4d..84af6d4 100644 (file)
@@ -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.
index 39a027d..cb7f145 100644 (file)
@@ -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[];
index cc937f4..bed40d4 100644 (file)
@@ -3,8 +3,8 @@
 #include <string.h>
 #include <unistd.h>
 
-#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];