Arbitrary (i.e. nonstandard) baud rate for serial device?

I have an FTDI-based USB serial adapter that I need to run at 7812bps. How can I programmatically set a nonstandard baud rate for a serial device that supports it?

Linux has the TIOCSSERIAL ioctl, and Windows has SetCommState() -- is there a BSD equivalent?

--Colin
 
Back
Top