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/SerialPortStream.cs
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/SerialPortStream.cs')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPortStream.cs6
1 files changed, 5 insertions, 1 deletions
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);
}
}