kernel: more error numbers needed
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Feb 2016 21:53:35 +0000 (21:53 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 25 Feb 2016 21:53:35 +0000 (21:53 +0000)
Kernel/include/kernel.h

index 94983e4..b3da359 100644 (file)
@@ -572,6 +572,15 @@ struct s_argblk {
 #define ENETDOWN       46              /* Network is down */
 #define EMSGSIZE       47              /* Message too long */
 
+#define ETIMEDOUT      48              /* Connection timed out */
+#define ECONNREFUSED   49              /* Connection refused */
+#define EHOSTUNREACH   50              /* No route to host */
+#define EHOSTDOWN      51              /* Host is down */
+#define        ENETUNREACH     52              /* Network is unreachable */
+#define ENOTCONN       53              /* Transport endpoint is not connected */
+#define EINPROGRESS    54              /* Operation now in progress */
+#define ESHUTDOWN      55              /* Cannot send after transport endpoint shutdown */
+
 /*
  * ioctls for kernel internal operations start at 0x8000 and cannot be issued
  * by userspace.