[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] Re: Bug in rtai_fifos?
Oops. This was a bug fixed in RTL v1.1 and brought back to life in
the current Beta series. Fixed in the next RTL release.
Paolo: does the copy of this in RTAI not have author information that
leads back to me or Michael?
On Fri, Sep 17, 1999 at 09:51:42AM -0600, Philip N Daly wrote:
> Paulo,
>
> >> Phil Daly wrote:
> >> Paulo,
> >> Not so much a bug as an oversight ... I have RTAI 0.6 and the rtf_put
> >> call returns "count" whereas I think it should return the value of
> >> the variable "written". The rtf_get is correct as it returns the
> >> value of the variable "read".
> >
> > So you forced me to look at it and I must say you are right.
> > Now the question is: should I change it and loose compatibility, so that
> > people that either are using it that way already in RTAI or moving from
> > RTL to RTAI will have the annoyance of modifying their tests?
>
> My view is that the API should be as symmetric as possible and consistent
> with the usual C read/write operations. So, I think rtf_put should return
> the actual number of bytes written just as rtf_get returns the actual number
> of bytes read. That way we can test for success or failure as required.
>
> I agree that it will be an annoyance for people to change their code but
> better now than later. If the bug/feature is also in NMT RT-Linux, it
> should be changed there too.
>
> I am posting this to the list so that a consensus might be reached. If
> the general feeling is to let sleeping dogs lie, then I can live with that.
>
> +==================================================================+
> Phil Daly, NOAO/AURA, 950 N. Cherry Avenue, Tucson AZ 85719, U S A
> E-mail: pdaly@noao.edu V-mail: (520) 318 8438 Fax: (520) 318 8360
>
>
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/