Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2007-10-14 07:13:12 +0400
committerMiguel de Icaza <miguel@gnome.org>2007-10-14 07:13:12 +0400
commit7333a80394b2c7d4b5a48380851b48ee6b06083a (patch)
tree2dacc7e09b22951cf51cca3129967c0ca73b565f /mcs/class/System/System.IO.Ports
parentf7025fccc075847f1dc5eb62db23312c7cf8374b (diff)
2007-10-13 Miguel de Icaza <miguel@novell.com>
* SerialPortStream.cs: Send a break on the Unix case. svn path=/trunk/mcs/; revision=87453
Diffstat (limited to 'mcs/class/System/System.IO.Ports')
-rw-r--r--mcs/class/System/System.IO.Ports/ChangeLog4
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPortStream.cs6
2 files changed, 9 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Ports/ChangeLog b/mcs/class/System/System.IO.Ports/ChangeLog
index 7df77db879a..8f28ef2dff7 100644
--- a/mcs/class/System/System.IO.Ports/ChangeLog
+++ b/mcs/class/System/System.IO.Ports/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-13 Miguel de Icaza <miguel@novell.com>
+
+ * SerialPortStream.cs: Send a break on the Unix case.
+
2007-08-12 Lukasz Byczynski <lukaszb@forcom.com.pl>
* SerialPortStream.cs: added timeout handling on write
diff --git a/mcs/class/System/System.IO.Ports/SerialPortStream.cs b/mcs/class/System/System.IO.Ports/SerialPortStream.cs
index e65f17cb3fe..51c825da379 100644
--- a/mcs/class/System/System.IO.Ports/SerialPortStream.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPortStream.cs
@@ -279,9 +279,13 @@ namespace System.IO.Ports
throw new IOException ();
}
+ [DllImport ("MonoPosixHelper")]
+ static extern int breakprop (int fd);
+
public void SetBreakState (bool value)
{
- throw new NotImplementedException ();
+ if (value)
+ breakprop (fd);
}
}