r316: - Add static variable to hold argv[0] so that PARSE_ERROR can be used from functions that don't have access to argv
r316: - Add static variable to hold argv[0] so that PARSE_ERROR can be used
from functions that don't have access to argv

- Add helper function to parse and validate unsigned integer command-line
arguments

- Validate logfilemask and logstdoutmask rather than accepting them blindly

- Fix heap corruption in --proxy parameter processing.  (Why was this
never noticed?)

cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr,cmusatyalab/openisr