MCPcopy Create free account
hub / github.com/NetHack/NetHack / read_sysconf

Function read_sysconf

util/sfctool.c:673–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673static void
674read_sysconf(void)
675{
676#ifdef SYSCF
677/* someday there may be other SYSCF alternatives besides text file */
678#ifdef SYSCF_FILE
679 /* If SYSCF_FILE is specified, it _must_ exist... */
680 assure_syscf_file();
681 config_error_init(TRUE, SYSCF_FILE, FALSE);
682 if (!read_config_file(SYSCF_FILE, set_in_sysconf)) {
683 if (config_error_done() && !iflags.initoptions_noterminate)
684 nh_terminate(EXIT_FAILURE);
685 }
686 config_error_done();
687 /*
688 * TODO [maybe]: parse the sysopt entries which are space-separated
689 * lists of usernames into arrays with one name per element.
690 */
691#endif
692#endif /* SYSCF */
693}
694
695/* provided for linkage only */
696

Callers 1

mainFunction · 0.85

Calls 5

assure_syscf_fileFunction · 0.85
config_error_initFunction · 0.85
read_config_fileFunction · 0.85
config_error_doneFunction · 0.85
nh_terminateFunction · 0.70

Tested by

no test coverage detected