W. Richard Stevens wrote the definitive books on Unix and network programming. Probably an entire generation of programmers, regardless of their preferred operating system, have educated themselves from these books.
However, they were getting a little long in the tooth since his unfortunate passing in 1999. Recently, several Unix gurus have stepped up and updated these books, including for Mac OS X.
Especially note the Dilbert comic on the cover.