POSIX
The Portable Operating System Interface (POSIX) is a collection of application programming interface standards for maintaining compatibility between various types of mostly UNIX-like operating systems. Thus, applications that use POSIX-compliant interfaces will be more portable between different (UNIX) platforms.
Literature
Serial programming guide for POSIX is a great online book on programming Unix serial ports.