[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["James H. Puttick" <james.puttick@kvs.com>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["James H. Puttick" <james.puttick@kvs.com>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Wed, 20 Jun 2001 08:07:25 +0200 (CEST)
>From owner-rtl Mon Jun 18 12:37:40 2001
Received: from kvsgate1.kvsnetdomain.kvs.com (mail.kerrvayne.com [216.123.24.242])
by hq.fsmlabs.com (8.11.2/8.11.2) with SMTP id f5IIbde21814
for <rtl@rtlinux.org>; Mon, 18 Jun 2001 12:37:39 -0600
Received: from 10.2.1.2 by kvsgate1.kvsnetdomain.kvs.com (InterScan E-Mail VirusWall NT); Mon, 18 Jun 2001 14:31:27 -0400 (Eastern Daylight Time)
Received: from NBJAMES ([10.2.104.4]) by kvs1.kvsdomain.kvs.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
id JVG30NQN; Mon, 18 Jun 2001 14:31:26 -0400
From: "James H. Puttick" <james.puttick@kvs.com>
Organization: Kerr Vayne Systems Ltd.
To: rtl@rtlinux.org
Date: Mon, 18 Jun 2001 14:31:20 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: [rtl] Bug in rt_com-0.5.3.
Message-ID: <3B2E10B8.23355.11E72B8@localhost>
Priority: normal
X-mailer: Pegasus Mail for Win32 (v3.12c)
> From: Denis RICHARD <dri@sxb.bsf.alcatel.fr>
>
> Hi all,
>
> I found a bug in rt_com-0.5.3.
>
> To verify free space remaining in a buffer (input or output), the
> indexes head and tail are compared. But when the buffer is full
> (head == tail), it is considered as empty. It cannot do the difference
> between a full and an empty buffer.
>
> To solve that, I added a counter (used) in the rt_buf_struct structure,
> which count the numbers of characters in the buffer.
>
> Attach the diff file.
>
> Denis
I ran into the same problem. However, I fixed it by modifying
rt_com_buff_free() to return a value 1 less than previously. I also
made what I thought were a couple of other improvements. These
changes have been posted on sourceforge.net as release "0.5.5 pre1".
-- James
----------------------------------------
James H. Puttick
Kerr Vayne Systems Ltd.
1 Valleywood Drive, Unit 5A
Markham, Ontario L3R 5L9
Canada
+1 905 475 6161 office
+1 905 479 9833 fax
mailto:james.puttick@kvs.com
----------------------------------------
----- End of forwarded message from owner-rtl@fsmlabs.com -----