unsigned short next_run_number; char *rundate, *runlogdir; void RunNum_init( void );
It initializes runlogdir by referencing the TMLOGDIR environment variable. It then opens the rundate file and extracts the rundate and the next_run_number values.
Specification of a TMLOGDIR value that causes the fullpath to exceed PATH_MAX is a fatal error. All other errors are reported but are not fatal and may result in rundate being left as NULL. drext_init() checks for this condition and will subsequently issue a fatal error, so HPF datarecvext programs can assume rundate is defined. RunLog_write() will refuse to write a new run log if rundate has not been initialized, which will effectively prevent runs from starting.
Nothing.