solaris-9-support-20020611

update hrestime interface
This commit is contained in:
Quanah Gibson-Mount 2002-06-12 01:03:17 +00:00 committed by Derrick Brashear
parent eb8c33d299
commit 9c29a6ead1
4 changed files with 24 additions and 0 deletions

View File

@ -39,7 +39,19 @@
* Time related macros
*/
#define afs_hz hz
#ifdef AFS_SUN59_ENV
#define osi_Time() local_osi_Time()
extern void gethrestime(timespec_t *);
static int
local_osi_Time()
{
timespec_t start;
gethrestime(&start);
return start.tv_sec;
}
#else
#define osi_Time() (hrestime.tv_sec)
#endif
#undef afs_osi_Alloc_NoSleep
extern void *afs_osi_Alloc_NoSleep(size_t size);

View File

@ -17,6 +17,10 @@
#endif
#include <afsconfig.h>
#ifdef AFS_SUN59_ENV
#include <sys/time_impl.h>
#endif
RCSID("$Header$");
#ifdef KERNEL

View File

@ -14,6 +14,10 @@
#include <afs/param.h>
#endif
#ifdef AFS_SUN59_ENV
#include <sys/time_impl.h>
#endif
RCSID("$Header$");
#ifdef KERNEL

View File

@ -16,6 +16,10 @@
#include <afs/param.h>
#endif
#ifdef AFS_SUN59_ENV
#include <sys/time_impl.h>
#endif
RCSID("$Header$");
#ifdef KERNEL