<div dir="ltr">Mac OS X supports a special function call for custom baud rates. I have implemented this feature to allow non-standard baud rates. Unfortunately, setting any other parameters using tcsetattr will fail, because it does not support the higher baud rates. In order to work around this, when setting other parameters, the baud rate is temporarily set to 9600, then reset back to custom rate after the changes are complete.</div>