[Mono-list] Some patches regarding Win32Exception
Jaroslaw Kowalski
jarek@atm.com.pl
Wed, 15 May 2002 07:45:02 +0200
Did you guys take a look at the proposed patches? Can anyone add them to
CVS?
Jarek
----- Original Message -----
From: Jaroslaw Kowalski
To: mono-list@ximian.com
Sent: Tuesday, May 14, 2002 8:45 AM
Subject: [Mono-list] Some patches regarding Win32Exception
Hi!
I'd like to contribute some error descriptions for
System.ComponentModel.Win32Exception.cs
(included in patch1.txt)
I'd also like to contribute a small PERL utility "update_win32_errors.pl"
that, when executed at the top level of source code (which is below mono and
mcs and gtk-sharp) will scan through all "*.c" source files in mono looking
for WSASetLastError(...) and SetLastError(...) calls and for all errors that
are not handled in Win32Exception.cs it will generate the appropriate source
code to stdout.
The code needs to be pasted into Win32Exception.cs and error codes need to
be replaced with their descriptions.
I'm also sending a patch to sockets.c to check for bind() EADDRINUSE error
(Address already in use, perhaps the most common bind() error) (patch2.txt)
BTW. I'm not sure if all error texts should be in "Win32Exception.cs"
instead of "SocketException.cs", but it's very easy to fix.
Regards,
Jarek