Further updates to the programmers guide
Further updates to the programmers guide

Up to Chapter 4 now reviewed.  Changes include:
- completed updates to interface docs which now have thread-safe
variants (pm*Str_r)
- update references to tmpname, long-since replaced by mkstemp
- additional event type metric references in appropriate places,
including type table for pmExtractValue and so on.
- consistent code formatting throughout, removing the occasional
odd whitespace

aeg-aeg/pcpfans,edwardt/pcp,prasincs/pcp,prasincs/pcp,tjanez/pcp,tjanez/pcp,wuliming/pcp,aeg-aeg/pcpfans,edwardt/pcp,aeg-aeg/pcpfans,adfernandes/pcp,edwardt/pcp,prasincs/pcp,andyvand/cygpcpfans,prasincs/pcp,wuliming/pcp,tjanez/pcp,wuliming/pcp,edwardt/pcp,adfernandes/pcp,andyvand/cygpcpfans,prasincs/pcp,tjanez/pcp,aeg-aeg/pcpfans,mbaldessari/pcp,prasincs/pcp,wuliming/pcp,edwardt/pcp,wuliming/pcp,mbaldessari/pcp,edwardt/pcp,mbaldessari/pcp,prasincs/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,aeg-aeg/pcpfans,adfernandes/pcp,edwardt/pcp,andyvand/cygpcpfans,adfernandes/pcp,wuliming/pcp,prasincs/pcp,aeg-aeg/pcpfans,andyvand/cygpcpfans,tjanez/pcp,aeg-aeg/pcpfans,tjanez/pcp,adfernandes/pcp,mbaldessari/pcp,tjanez/pcp,andyvand/cygpcpfans,tjanez/pcp,andyvand/cygpcpfans,mbaldessari/pcp,mbaldessari/pcp,edwardt/pcp,andyvand/cygpcpfans,andyvand/cygpcpfans,adfernandes/pcp,adfernandes/pcp,aeg-aeg/pcpfans