Serial Programming Guide for POSIX Operating Systems - Michael R Sweet - http://www.easysw.com/~mike/serial/serial.html