[Mono-bugs] [Bug 79722][Nor] New - SerialPort: read_serial prototypes do not match

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 22 13:20:25 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jelle.hissink at c-it.nl.


--- shadow/79722	2006-10-22 13:20:25.000000000 -0400
+++ shadow/79722.tmp.7309	2006-10-22 13:20:25.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 79722
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com                            
+ReportedBy: Jelle.Hissink at C-it.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: SerialPort: read_serial prototypes do not match
+The prototype for read_serial as defined in 
+   mono-1.1.18/mcs/class/System/System.IO.Ports/SerialPortStream.cs
+does not match the declaration in 
+   mono-1.1.18/support/serial.c
+SerialPortStream.cs: 120
+   [DllImport ("MonoPosixHelper")]
+   static extern int read_serial (int fd, byte [] buffer, int offset, int
+count, int timeout);
+serial.c: 85
+   guint32
+   read_serial (int fd, guchar *buffer, int offset, int count)
+Note the missing timeout parameter...
+I have not used the class thus I have no problem, but I wanted to report
+this anyway. On Windows it should be no problem, but all other platforms
+should possibly have problems.
+Jelle Hissink

More information about the mono-bugs mailing list