time.c revision d25afd60ee2286cb171c4960a790f3d7041b6f85
#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <windows.h>
#include <isc/assertions.h>
/***
*** Intervals
***/
void
unsigned int seconds, unsigned int nanoseconds) {
/*
* Set 'i' to a value representing an interval of 'seconds' seconds
* and 'nanoseconds' nanoseconds, suitable for use in isc_time_add()
* and isc_time_subtract().
*/
}
/*
* Returns ISC_TRUE iff. 'i' is the zero interval.
*/
if (i->interval == 0)
return (ISC_TRUE);
return (ISC_FALSE);
}
/***
*** Absolute Times
***/
void
/*
* Set 't' to the time of the epoch.
*/
}
/*
* Returns ISC_TRUE iff. 't' is the epoch ("time zero").
*/
return (ISC_TRUE);
return (ISC_FALSE);
}
isc_time_get(isc_time_t t) {
/*
* Set *t to the current absolute time.
*/
return (ISC_R_SUCCESS);
}
int
/*
* Compare the times referenced by 't1' and 't2'
*/
}
void
{
/*
* Add 't' to 'i', storing the result in 'result'.
*/
/* XXX trouble here if high bit set (i.e. signed -> unsigned?) */
/* XXX potential signed to unsigned problem */
}
void
/*
* Subtract 'i' from 't', storing the result in 'result'.
*/
/* XXX trouble here if high bit set (i.e. signed -> unsigned?) */
/* XXX potential signed to unsigned problem */
}
/***
*** Win32 Only
***/
unsigned int
/* XXX trouble here if high bit set (i.e. signed -> unsigned?) */
/* XXX trouble here if high bit set (i.e. signed -> unsigned?) */
return (0);
return (1000000000);
return ((unsigned int)(i3));
}