restructured configuration (ofac.c)

- ofac.c contains now only the command in initialisation function list
- the other functions are moved to sicsutil.c
- moved DoubleTime and the content of access.c to sicsutil.c
- moved some initialisation code from ofac.c to the corresponding modules
This commit is contained in:
zolliker
2010-01-28 08:14:37 +00:00
parent 9b18a3bd0a
commit 4bf0c87daf
15 changed files with 199 additions and 515 deletions

View File

@ -20,7 +20,6 @@
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include "sics.h"
#include "network.h"
#include "ifile.h"
@ -525,15 +524,3 @@ int ServerIsStarting(pServer self)
{
return self->pReader == NULL;
}
/*-------------------------------------------------------------------------*/
double DoubleTime(void)
{
struct timeval now;
/* the resolution of this function is usec, if the machine supports this
and the mantissa of a double is 51 bits or more (31 for sec and 20 for mic$
*/
gettimeofday(&now, NULL);
return now.tv_sec + now.tv_usec / 1e6;
}