Apple have define an IOCTL (since Tiger) called IOSSIOSPEED which facilitates non-standard baud rates.
They publish a C example which explains it:
http://developer.apple.com/library/mac/#samplecode/SerialPortSample/Introduction/Intro.html
Attached is a patch for FPC's darwin RTL which adds this IOCTL.
I think it's correct (i.e. it evaluates to the same value, 0x80045402, as some C I threw together using Apple's headers, see attached).
I've appended this definition in termios.inc as this seems the most appropriate place for it. Jonas?
Cheers, Bruce.
