rundate

Synopsis

      unsigned short next_run_number;
      char *rundate, *runlogdir;
      void RunNum_init( void );

Description

RunNum_init() performs a number of initializations required by both HPF command servers and datarecvext programs.

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.

Returns

Nothing.

See Also

HPF datarecvext functions, HPF Support Routines.

Source File

/usr/local/src/nortlib/runnum.c

Alphabetical List
Subject List
Return to Manuals Page
webmaster@huarp.harvard.edu
Copyright 2001 by the President and Fellows of Harvard College