solaris-9-support-20020611
authorQuanah Gibson-Mount <quanah@stanford.edu>
Wed, 12 Jun 2002 01:03:17 +0000 (01:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 12 Jun 2002 01:03:17 +0000 (01:03 +0000)
update hrestime interface

src/afs/SOLARIS/osi_machdep.h
src/rx/rx_clock.c
src/rx/rx_event.c
src/rxkad/rxkad_common.c

index ef27ae5..0f71fa0 100644 (file)
  * 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);
index a37fc6e..7d60884 100644 (file)
 #endif
 #include <afsconfig.h>
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index fd83ee1..f117b12 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index 7f7aab4..6d24c0f 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL