This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001466] /dev/null serial driver


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001466

--- Comment #8 from Bernard Fouchà <bernard.fouche@kuantic.com> 2012-02-16 15:38:36 GMT ---
(In reply to comment #7)
> Shall it really be a problem to use name /dev/null? I don't think so, at least
> to me first association with /dev/null is the null device. If it sinks on write
> and returns EOF on read it should be enough.

In poll mode, serial.c calls (funs->getc)(chan) and consider that a character
is always obtained when the function returns: getting EOF in that case does not
seem possible.

Now who will try reading /dev/null in poll mode? Maybe in this case the driver
should refuse to compile (#error "/dev/null doesn't support poll mode")?
However one may use poll mode but only write to /dev/null. Or CYG_FAIL() could
be called in poll mode if /dev/null is read?

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]