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

2008-02-19 Thread Carlos Alberto Cortez
Hey Miguel, Somehow I had this wrong idea that GetLastError would retrieve windows-specific codes (not the ones errno gets). Thanks, Carlos. El lun, 18-02-2008 a las 20:19 -0500, Miguel de Icaza escribió: > Hello Carlos, > > > The attached patch adds a 'serial_errno' variable in > > mono/suppo

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

2008-02-19 Thread Miguel de Icaza
Hello Carlos, > The attached patch adds a 'serial_errno' variable in > mono/support/serial.c, to cache the last error related to serial port > functions. > > At first I tried to just create a function directly retrieving errno, > but it was getting a different value from the original (probably so

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

2008-02-19 Thread Leszek Ciesielski
2008/2/18 Carlos Alberto Cortez <[EMAIL PROTECTED]>: > Hey, > > The attached patch adds a 'serial_errno' variable in > mono/support/serial.c, to cache the last error related to serial port > functions. > > At first I tried to just create a function directly retrieving errno, > but it was getting a

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

2008-02-17 Thread Carlos Alberto Cortez
Hey, The attached patch adds a 'serial_errno' variable in mono/support/serial.c, to cache the last error related to serial port functions. 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 a