[Mono-dev] [HaikuPorts-devs] [RFC v2 6/8] serial: Stub implementation for Haiku

François Revol revol at free.fr
Thu Apr 1 04:35:20 EDT 2010


Le Thu,  1 Apr 2010 02:27:57 +0200, Andreas Färber a écrit :
> Haiku has no full serial support, especially no TIOCOUTQ or TIOCM_*.
> Provide a no-op implementation similar to null-gc.
> 

Again, TIOCOUTQ is not found on opengroup.org, neither are TIOCM_* 
which seem to be from SysV.

As I said, there is no reason to skip serial support because of that...

TIOCOUTQ can be easily added to Haiku, or the BSD variant FIONWRITE.

As for TIOCMGET and friends it should be possible to #ifdef it out to 
return -1 with errno = ENOSYS. The calls already have provisions to 
return errors. Unless used by a low level app like a serial flasher app 
I don't see why one would need to use modem lines directly, so for most 
apps it shouldn't be needed...

François.


More information about the Mono-devel-list mailing list