delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/13/23:12:04

Sender: richdawe AT bigfoot DOT com
Message-ID: <36EB3691.B3D368FA@meridian22.net>
Date: Sun, 14 Mar 1999 04:09:53 +0000
From: Richard Dawe <richdawe AT bigfoot DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: diffs for socket error codes and messages
Reply-To: djgpp-workers AT delorie DOT com

This is a multi-part message in MIME format.
--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello.

	I have attached some context diffs to add BSD networking error codes and
messages to DJGPP. I noticed in include/errno.h that there are #ifdefs for
POSIX compliance. I do not know which comply to POSIX, so I have included them
in the main section. Bye,

-- 
==============================================================================
         Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK
           richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/
==============================================================================
--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii; name="errno.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="errno.h.diff"

*** include/errno.h	Sun Mar 14 03:38:23 1999
--- include/errno.h.new	Sun Mar 14 03:43:52 1999
***************
*** 51,56 ****
--- 51,90 ----
  #define ESPIPE		35
  #define ESRCH		36
  #define EXDEV		37
+ #define EWOULDBLOCK EAGAIN
+ #define ELOOP           40
+ #define EREMOTE         66
+ #define EPROTOTYPE      71
+ #define EUSERS          87
+ #define ENOTSOCK        88
+ #define EDESTADDRREQ    89
+ #define EMSGSIZE        90
+ #define ENOPROTOOPT     92
+ #define EPROTONOSUPPORT	93
+ #define ESOCKTNOSUPPORT	94
+ #define EOPNOTSUPP      95
+ #define EPFNOSUPPORT	96
+ #define EAFNOSUPPORT	97
+ #define EADDRINUSE      98
+ #define EADDRNOTAVAIL   99
+ #define ENETDOWN        100
+ #define ENETUNREACH     101
+ #define ENETRESET       102
+ #define ECONNABORTED    103
+ #define ECONNRESET      104
+ #define ENOBUFS         105
+ #define EISCONN         106
+ #define ENOTCONN        107
+ #define ESHUTDOWN       108
+ #define ETOOMANYREFS    109
+ #define ETIMEDOUT       110
+ #define ECONNREFUSED    111
+ #define EHOSTDOWN       112
+ #define EHOSTUNREACH    113
+ #define EALREADY        114
+ #define EINPROGRESS     115
+ #define ESTALE          116
+ #define EDQUOT          122
  
  #ifndef _POSIX_SOURCE
  


--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii; name="syserr1.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="syserr1.c.diff"

*** src/libc/ansi/string/syserr1.c	Sun Mar 14 03:46:14 1999
--- src/libc/ansi/string/syserr1.c.new	Sun Mar 14 03:46:34 1999
***************
*** 40,42 ****
--- 40,126 ----
  char __syserr36[] = "No such process (ESRCH)";
  char __syserr37[] = "Improper link (EXDEV)";
  char __syserr38[] = "No more files (ENMFILE)";
+ char __syserr39[] = "Unknown error: 39";
+ char __syserr40[] = "Too many levels of symbolic links (ELOOP)";
+ char __syserr41[] = "Unknown error: 41";
+ char __syserr42[] = "Unknown error: 42";
+ char __syserr43[] = "Unknown error: 43";
+ char __syserr44[] = "Unknown error: 44";
+ char __syserr45[] = "Unknown error: 45";
+ char __syserr46[] = "Unknown error: 46";
+ char __syserr47[] = "Unknown error: 47";
+ char __syserr48[] = "Unknown error: 48";
+ char __syserr49[] = "Unknown error: 49";
+ char __syserr50[] = "Unknown error: 50";
+ char __syserr51[] = "Unknown error: 51";
+ char __syserr52[] = "Unknown error: 52";
+ char __syserr53[] = "Unknown error: 53";
+ char __syserr54[] = "Unknown error: 54";
+ char __syserr55[] = "Unknown error: 55";
+ char __syserr56[] = "Unknown error: 56";
+ char __syserr57[] = "Unknown error: 57";
+ char __syserr58[] = "Unknown error: 58";
+ char __syserr59[] = "Unknown error: 59";
+ char __syserr60[] = "Unknown error: 60";
+ char __syserr61[] = "Unknown error: 61";
+ char __syserr62[] = "Unknown error: 62";
+ char __syserr63[] = "Unknown error: 63";
+ char __syserr64[] = "Unknown error: 64";
+ char __syserr65[] = "Unknown error: 65";
+ char __syserr66[] = "Object is remote (EREMOTE)";
+ char __syserr67[] = "Unknown error: 67";
+ char __syserr68[] = "Unknown error: 68";
+ char __syserr69[] = "Unknown error: 69";
+ char __syserr70[] = "Unknown error: 70";
+ char __syserr71[] = "Protocol wrong type for socket (EPROTOTYPE)";
+ char __syserr72[] = "Unknown error: 72";
+ char __syserr73[] = "Unknown error: 73";
+ char __syserr74[] = "Unknown error: 74";
+ char __syserr75[] = "Unknown error: 75";
+ char __syserr76[] = "Unknown error: 76";
+ char __syserr77[] = "Unknown error: 77";
+ char __syserr78[] = "Unknown error: 78";
+ char __syserr79[] = "Unknown error: 79";
+ char __syserr80[] = "Unknown error: 80";
+ char __syserr81[] = "Unknown error: 81";
+ char __syserr82[] = "Unknown error: 82";
+ char __syserr83[] = "Unknown error: 83";
+ char __syserr84[] = "Unknown error: 84";
+ char __syserr85[] = "Unknown error: 85";
+ char __syserr86[] = "Unknown error: 86";
+ char __syserr87[] = "Too many users (EUSERS)";
+ char __syserr88[] = "Not a socket (ENOTSOCK)";
+ char __syserr89[] = "Destination address required (EDESTADDRREQ)";
+ char __syserr90[] = "Message too long (EMSGSIZE)";
+ char __syserr91[] = "Unknown error: 91";
+ char __syserr92[] = "Protocol not available (ENOPROTOOPT)";
+ char __syserr93[] = "Protocol not supported (EPROTONOSUPPORT)";
+ char __syserr94[] = "Socket type not supported (ESOCKTNOSUPPORT)";
+ char __syserr95[] = "Operation not supported on transport endpoint (EOPNOTSUPP)";
+ char __syserr96[] = "Protocol family not supported (EPFNOSUPPORT)";
+ char __syserr97[] = "Address family not supported (EAFNOSUPPORT)";
+ char __syserr98[] = "Address already in use (EADDRINUSE)";
+ char __syserr99[] = "Cannot assign requested address (EADDRNOTAVAIL)";
+ char __syserr100[] = "Network is down (ENETDOWN)";
+ char __syserr101[] = "Network is unreachable (ENETUNREACH)";
+ char __syserr102[] = "Network dropped connection because of reset (ENETRESET)";
+ char __syserr103[] = "Software caused connection abort (ECONNABORTED)";
+ char __syserr104[] = "Connection reset by peer (ECONNRESET)";
+ char __syserr105[] = "No buffer space available (ENOBUFS)";
+ char __syserr106[] = "Transport endpoint is already connected (EISCONN)";
+ char __syserr107[] = "Transport endpoint is not connected (ENOTCONN)";
+ char __syserr108[] = "Cannot send after transport endpoint shutdown (ESHUTDOWN)";
+ char __syserr109[] = "Too many references: cannot splice (ETOOMANYREFS)";
+ char __syserr110[] = "Connection timed out (ETIMEOUT)";
+ char __syserr111[] = "Connection refused (ECONNREFUSED)";
+ char __syserr112[] = "Host is down (EHOSTDOWN)";
+ char __syserr113[] = "No route to host (EHOSTUNREACH)";
+ char __syserr114[] = "Operation already in progress (EALREADY)";
+ char __syserr115[] = "Operation now in progress (EINPROGRESS)";
+ char __syserr116[] = "Stale NFS handle (ESTALE)";
+ char __syserr117[] = "Unknown error: 117";
+ char __syserr118[] = "Unknown error: 118";
+ char __syserr119[] = "Unknown error: 119";
+ char __syserr120[] = "Unknown error: 120";
+ char __syserr121[] = "Unknown error: 121";
+ char __syserr122[] = "Quota exceeded (EDQUOT)";


--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii; name="syserr1.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="syserr1.h.diff"

*** src/libc/ansi/string/syserr1.h	Sun Mar 14 03:46:19 1999
--- src/libc/ansi/string/syserr1.h.new	Sun Mar 14 03:46:34 1999
***************
*** 38,40 ****
--- 38,124 ----
  extern char __syserr36[];
  extern char __syserr37[];
  extern char __syserr38[];
+ extern char __syserr39[];
+ extern char __syserr40[];
+ extern char __syserr41[];
+ extern char __syserr42[];
+ extern char __syserr43[];
+ extern char __syserr44[];
+ extern char __syserr45[];
+ extern char __syserr46[];
+ extern char __syserr47[];
+ extern char __syserr48[];
+ extern char __syserr49[];
+ extern char __syserr50[];
+ extern char __syserr51[];
+ extern char __syserr52[];
+ extern char __syserr53[];
+ extern char __syserr54[];
+ extern char __syserr55[];
+ extern char __syserr56[];
+ extern char __syserr57[];
+ extern char __syserr58[];
+ extern char __syserr59[];
+ extern char __syserr60[];
+ extern char __syserr61[];
+ extern char __syserr62[];
+ extern char __syserr63[];
+ extern char __syserr64[];
+ extern char __syserr65[];
+ extern char __syserr66[];
+ extern char __syserr67[];
+ extern char __syserr68[];
+ extern char __syserr69[];
+ extern char __syserr70[];
+ extern char __syserr71[];
+ extern char __syserr72[];
+ extern char __syserr73[];
+ extern char __syserr74[];
+ extern char __syserr75[];
+ extern char __syserr76[];
+ extern char __syserr77[];
+ extern char __syserr78[];
+ extern char __syserr79[];
+ extern char __syserr80[];
+ extern char __syserr81[];
+ extern char __syserr82[];
+ extern char __syserr83[];
+ extern char __syserr84[];
+ extern char __syserr85[];
+ extern char __syserr86[];
+ extern char __syserr87[];
+ extern char __syserr88[];
+ extern char __syserr89[];
+ extern char __syserr90[];
+ extern char __syserr91[];
+ extern char __syserr92[];
+ extern char __syserr93[];
+ extern char __syserr94[];
+ extern char __syserr95[];
+ extern char __syserr96[];
+ extern char __syserr97[];
+ extern char __syserr98[];
+ extern char __syserr99[];
+ extern char __syserr100[];
+ extern char __syserr101[];
+ extern char __syserr102[];
+ extern char __syserr103[];
+ extern char __syserr104[];
+ extern char __syserr105[];
+ extern char __syserr106[];
+ extern char __syserr107[];
+ extern char __syserr108[];
+ extern char __syserr109[];
+ extern char __syserr110[];
+ extern char __syserr111[];
+ extern char __syserr112[];
+ extern char __syserr113[];
+ extern char __syserr114[];
+ extern char __syserr115[];
+ extern char __syserr116[];
+ extern char __syserr117[];
+ extern char __syserr118[];
+ extern char __syserr119[];
+ extern char __syserr120[];
+ extern char __syserr121[];
+ extern char __syserr122[];


--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii; name="syserr2.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="syserr2.c.diff"

*** src/libc/ansi/string/syserr2.c	Sun Mar 14 03:46:14 1999
--- src/libc/ansi/string/syserr2.c.new	Sun Mar 14 03:46:34 1999
***************
*** 10,16 ****
  __syserr20, __syserr21, __syserr22, __syserr23, __syserr24,
  __syserr25, __syserr26, __syserr27, __syserr28, __syserr29,
  __syserr30, __syserr31, __syserr32, __syserr33, __syserr34,
! __syserr35, __syserr36, __syserr37, __syserr38
  };
  
  int __sys_nerr = sizeof(__sys_errlist) / sizeof(__sys_errlist[0]);
--- 10,33 ----
  __syserr20, __syserr21, __syserr22, __syserr23, __syserr24,
  __syserr25, __syserr26, __syserr27, __syserr28, __syserr29,
  __syserr30, __syserr31, __syserr32, __syserr33, __syserr34,
! __syserr35, __syserr36, __syserr37, __syserr38, __syserr39,
! __syserr40, __syserr41, __syserr42, __syserr43, __syserr44,
! __syserr45, __syserr46, __syserr47, __syserr48, __syserr49,
! __syserr50, __syserr51, __syserr52, __syserr53, __syserr54,
! __syserr55, __syserr56, __syserr57, __syserr58, __syserr59,
! __syserr60, __syserr61, __syserr62, __syserr63, __syserr64,
! __syserr65, __syserr66, __syserr67, __syserr68, __syserr69,
! __syserr70, __syserr71, __syserr72, __syserr73, __syserr74,
! __syserr75, __syserr76, __syserr77, __syserr78, __syserr79,
! __syserr80, __syserr81, __syserr82, __syserr83, __syserr84,
! __syserr85, __syserr86, __syserr87, __syserr88, __syserr89,
! __syserr90, __syserr91, __syserr92, __syserr93, __syserr94,
! __syserr95, __syserr96, __syserr97, __syserr98, __syserr99,
! __syserr100, __syserr101, __syserr102, __syserr103, __syserr104,
! __syserr105, __syserr106, __syserr107, __syserr108, __syserr109,
! __syserr110, __syserr111, __syserr112, __syserr113, __syserr114,
! __syserr115, __syserr116, __syserr117, __syserr118, __syserr119,
! __syserr120, __syserr121, __syserr122
  };
  
  int __sys_nerr = sizeof(__sys_errlist) / sizeof(__sys_errlist[0]);


--------------70A065B4024D2038CEF4ACD0
Content-Type: text/plain; charset=us-ascii; name="syserr3.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="syserr3.c.diff"

*** src/libc/ansi/string/syserr3.c	Sun Mar 14 03:46:14 1999
--- src/libc/ansi/string/syserr3.c.new	Sun Mar 14 03:46:34 1999
***************
*** 10,16 ****
  __syserr20, __syserr21, __syserr22, __syserr23, __syserr24,
  __syserr25, __syserr26, __syserr27, __syserr28, __syserr29,
  __syserr30, __syserr31, __syserr32, __syserr33, __syserr34,
! __syserr35, __syserr36, __syserr37, __syserr38
  };
  
  int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);
--- 10,33 ----
  __syserr20, __syserr21, __syserr22, __syserr23, __syserr24,
  __syserr25, __syserr26, __syserr27, __syserr28, __syserr29,
  __syserr30, __syserr31, __syserr32, __syserr33, __syserr34,
! __syserr35, __syserr36, __syserr37, __syserr38, __syserr39,
! __syserr40, __syserr41, __syserr42, __syserr43, __syserr44,
! __syserr45, __syserr46, __syserr47, __syserr48, __syserr49,
! __syserr50, __syserr51, __syserr52, __syserr53, __syserr54,
! __syserr55, __syserr56, __syserr57, __syserr58, __syserr59,
! __syserr60, __syserr61, __syserr62, __syserr63, __syserr64,
! __syserr65, __syserr66, __syserr67, __syserr68, __syserr69,
! __syserr70, __syserr71, __syserr72, __syserr73, __syserr74,
! __syserr75, __syserr76, __syserr77, __syserr78, __syserr79,
! __syserr80, __syserr81, __syserr82, __syserr83, __syserr84,
! __syserr85, __syserr86, __syserr87, __syserr88, __syserr89,
! __syserr90, __syserr91, __syserr92, __syserr93, __syserr94,
! __syserr95, __syserr96, __syserr97, __syserr98, __syserr99,
! __syserr100, __syserr101, __syserr102, __syserr103, __syserr104,
! __syserr105, __syserr106, __syserr107, __syserr108, __syserr109,
! __syserr110, __syserr111, __syserr112, __syserr113, __syserr114,
! __syserr115, __syserr116, __syserr117, __syserr118, __syserr119,
! __syserr120, __syserr121, __syserr122
  };
  
  int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);


--------------70A065B4024D2038CEF4ACD0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019