appconfig - A configuration object which has the proper values set
defining the profiles to be loaded. For an example,
see threaded_os/examples/beepd.cfg pgmname - Typically argv[0].
dataname - The application configuration, usually "default".
logname - The name of the logfile, or NULL to request a
suitable default.
Returns:
On success, NULL; otherwise, a pointer to a diagnostic
structure.