<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/libserial/patches/" rel="alternate"/><link href="https://sourceforge.net/p/libserial/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/libserial/patches/</id><updated>2015-04-17T22:31:33.450000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#3 Patch for two issues</title><link href="https://sourceforge.net/p/libserial/patches/3/?limit=25#45d0" rel="alternate"/><published>2015-04-17T22:31:33.450000Z</published><updated>2015-04-17T22:31:33.450000Z</updated><author><name>Crayzee Wulf</name><uri>https://sourceforge.net/u/crayzeewulf/</uri></author><id>https://sourceforge.net500a4923ad176503d98361f328f0d9b869e33277</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#4 Patch to fix bug #7</title><link href="https://sourceforge.net/p/libserial/patches/4/?limit=25#5798" rel="alternate"/><published>2014-06-05T16:53:16.330000Z</published><updated>2014-06-05T16:53:16.330000Z</updated><author><name>Crayzee Wulf</name><uri>https://sourceforge.net/u/crayzeewulf/</uri></author><id>https://sourceforge.net21642442cfa493e5f97b445bd41d1c18a9b722e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#4 Patch to fix bug #7</title><link href="https://sourceforge.net/p/libserial/patches/4/?limit=25#ae19" rel="alternate"/><published>2014-06-05T16:52:54.079000Z</published><updated>2014-06-05T16:52:54.079000Z</updated><author><name>Crayzee Wulf</name><uri>https://sourceforge.net/u/crayzeewulf/</uri></author><id>https://sourceforge.net9d04d001cb76aae01d790a14e69ca3576ccfbd05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch has been accepted and is in the latest Subversion code now. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch to fix bug #7</title><link href="https://sourceforge.net/p/libserial/patches/4/" rel="alternate"/><published>2013-11-28T14:55:48.085000Z</published><updated>2013-11-28T14:55:48.085000Z</updated><author><name>Oliver Schwaneberg</name><uri>https://sourceforge.net/u/oschwa2s/</uri></author><id>https://sourceforge.netfb14d4425b8f6b805794e10f50eb3a0543ced46a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch fixes bug #7.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch to fix bug #7</title><link href="https://sourceforge.net/p/libserial/patches/4/" rel="alternate"/><published>2013-11-28T14:55:48.085000Z</published><updated>2013-11-28T14:55:48.085000Z</updated><author><name>Oliver Schwaneberg</name><uri>https://sourceforge.net/u/oschwa2s/</uri></author><id>https://sourceforge.net0ef35b48b4eb0332f836b2cee4c2c07615fbb74e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 4 has been modified: Patch to fix bug #7&lt;br /&gt;
Edited By: Crayzee Wulf (crayzeewulf)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed-accepted'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch for two issues</title><link href="https://sourceforge.net/p/libserial/patches/3/" rel="alternate"/><published>2013-11-25T14:05:13.238000Z</published><updated>2013-11-25T14:05:13.238000Z</updated><author><name>Oliver Schwaneberg</name><uri>https://sourceforge.net/u/oschwa2s/</uri></author><id>https://sourceforge.net9b772d37d20973704101bfdcf56e247370167b55</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br /&gt;
I'm currently using libSerial 0.6.0rc1 to communicate with an embedded system at 460800 baud.&lt;/p&gt;
&lt;p&gt;First of all, I noticed that SerialStreams cannot be used with this baud rate, as the corresponding defines are missing within "SerialStreamBuf.cc". I added those missing defines.&lt;/p&gt;
&lt;p&gt;Then, I experienced random segfaults that occur after about 2-45 minutes runtime of my program, which is constantly receiving data at 2.6kB/s. I noticed the unfinished code in PosixSignalDispatcherImpl::SigactionHandler, where currently all incoming signals are passed. I just added a little check at the start of the method to ensure that only IO-signals are processed. Since then I got no segfaults anymore.&lt;/p&gt;
&lt;p&gt;BTW, I also made some changes to get rid of some warnings that occur during compilation.&lt;/p&gt;
&lt;p&gt;I just generated a patch to apply my changes to the src folder of version 0.6.0rc1. Please have a look!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
oschwa2m&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch for two issues</title><link href="https://sourceforge.net/p/libserial/patches/3/" rel="alternate"/><published>2013-11-25T14:05:13.238000Z</published><updated>2013-11-25T14:05:13.238000Z</updated><author><name>Oliver Schwaneberg</name><uri>https://sourceforge.net/u/oschwa2s/</uri></author><id>https://sourceforge.net7b7d361c74c229418b7d84e27f23278173ba5be4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 3 has been modified: Patch for two issues&lt;br /&gt;
Edited By: Crayzee Wulf (crayzeewulf)&lt;br /&gt;
Status updated: u'open' =&amp;gt; u'closed-accepted'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fix build error</title><link href="https://sourceforge.net/p/libserial/patches/2/" rel="alternate"/><published>2013-04-23T14:48:02Z</published><updated>2013-04-23T14:48:02Z</updated><author><name>Simon Dawson</name><uri>https://sourceforge.net/u/spdawson/</uri></author><id>https://sourceforge.net43a628924aaf4c881f78306b9281a733ed717db8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Build error (gcc 4.7.3, cross-compiling for ARM):&lt;/p&gt;
&lt;p&gt;SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Open()':&lt;br /&gt;
SerialPort.cpp:643:24: error: 'getpid' was not declared in this scope&lt;br /&gt;
SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Close()':&lt;br /&gt;
SerialPort.cpp:748:26: error: 'close' was not declared in this scope&lt;br /&gt;
SerialPort.cpp: In member function 'unsigned char SerialPort::SerialPortImpl::ReadByte(unsigned int)':&lt;br /&gt;
SerialPort.cpp:1246:37: error: 'usleep' was not declared in this scope&lt;br /&gt;
SerialPort.cpp: In member function 'void SerialPort::SerialPortImpl::Write(const unsigned char*, unsigned int)':&lt;br /&gt;
SerialPort.cpp:1427:50: error: 'write' was not declared in this scope&lt;br /&gt;
SerialPort.cpp: In member function 'virtual void SerialPort::SerialPortImpl::HandlePosixSignal(int)':&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>showmanyc method to allow non-blocking read</title><link href="https://sourceforge.net/p/libserial/patches/1/" rel="alternate"/><published>2005-07-30T14:52:35Z</published><updated>2005-07-30T14:52:35Z</updated><author><name>Jan Wedekind</name><uri>https://sourceforge.net/u/wedesoft/</uri></author><id>https://sourceforge.net851912a885c31a51658a6b0481941a21ad81746c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;One would be able to check for availability of input&lt;br /&gt;
using 's.rdbuf()-&amp;gt;in_avail() &amp;gt; 0', if the method&lt;br /&gt;
'SerialStreamBuf::showmanyc()' is implemented:&lt;br /&gt;
----------------&lt;br /&gt;
std::streamsize SerialStreamBuf::showmanyc() {&lt;/p&gt;
&lt;p&gt;int retval = -1;&lt;/p&gt;
&lt;p&gt;if ( -1 == mFileDescriptor ) {&lt;br /&gt;
return -1;&lt;br /&gt;
};&lt;/p&gt;
&lt;p&gt;if ( mPutbackAvailable ) {&lt;/p&gt;
&lt;p&gt;// We still have a character left in the buffer.&lt;br /&gt;
retval = 1;&lt;/p&gt;
&lt;p&gt;} else {&lt;/p&gt;
&lt;p&gt;// Switch to non-blocking read.&lt;br /&gt;
int flags = fcntl(this-&amp;gt;mFileDescriptor, F_GETFL, 0) ;&lt;br /&gt;
if( -1 == fcntl( this-&amp;gt;mFileDescriptor, &lt;br /&gt;
F_SETFL, &lt;br /&gt;
flags | O_NONBLOCK ) ) {&lt;br /&gt;
return -1;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;// Try to read a character.&lt;br /&gt;
retval = read(mFileDescriptor, &amp;amp;mPutbackChar, 1);&lt;/p&gt;
&lt;p&gt;if ( retval == 1 ) {&lt;br /&gt;
mPutbackAvailable = true;&lt;br /&gt;
} else&lt;br /&gt;
retval = 0;&lt;/p&gt;
&lt;p&gt;// Switch back to blocking read.&lt;br /&gt;
if( -1 == fcntl( this-&amp;gt;mFileDescriptor, &lt;br /&gt;
F_SETFL, &lt;br /&gt;
flags ) ) {&lt;br /&gt;
return -1;&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
return retval;  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
------------------&lt;br /&gt;
The patch furthermore fixes the missing&lt;br /&gt;
return-statement in 'SerialStreamBuf::open'.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>