[Mono-dev] [PATCH] Cache errno for serial port

Carlos Alberto Cortez calberto.cortez at gmail.com
Mon Feb 18 00:14:25 EST 2008


The attached patch adds a 'serial_errno' variable in
mono/support/serial.c, to cache the last error related to serial port

At first I tried to just create a function directly retrieving errno,
but it was getting a different value from the original (probably some
code modified it after the pinvoke call?).

This is needed to a simple but better error reporting in the
System.IO.Ports.SerialPort class.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial.patch
Type: text/x-patch
Size: 2244 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080217/80267327/attachment.bin 

More information about the Mono-devel-list mailing list