UNIX to Linux Porting: A Comprehensive Reference