getopt uses global variables and behaves badly in a multithreaded
application when called concurrently. Instead provide a *_r function
taking all options as function parameters. You may provide argc and
getopt uses global variables and behaves badly in a multithreaded
application when called concurrently. Instead provide a *_r function
taking all options as function parameters. You may provide argc and