[Mono-dev] [HaikuPorts-devs] [RFC 09/12] console-unix: Workaround FIONREAD ioctl for Haiku

François Revol revol at free.fr
Fri Mar 26 15:47:46 EDT 2010


Le Fri, 26 Mar 2010 17:07:59 +0100, Ingo Weinhold a écrit :
> 
> On 2010-03-26 at 17:02:05 [+0100], Andreas Färber <
> andreas.faerber at web.de> wrote:
> > Am 26.03.2010 um 15:39 schrieb François Revol:
> > > Don't we have this implemented ?
> > > If not it should be fixed in the tty driver...
> > 
> > A quick grep -r shows FIONREAD in sys/ioctl.h (and STDIN_FILENO in
> > unistd.h).
> > `hg blame` indicates changeset 17441 or SVN r18456 but also shows "
> > /*
> > These only work on sockets for now */". :)
> > 
> > I'll check compilation without this patch next week.
> 
> It's not implemented for TTYs yet. The ioctl() will just fail.

I just committed an untested implementation as r35960, feel free to 
test it (and write a test case :p).

François.


More information about the Mono-devel-list mailing list