]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-solaris-9-support-20020611
authorQuanah Gibson-Mount <quanah@stanford.edu>
Wed, 10 Jul 2002 20:43:17 +0000 (20:43 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 10 Jul 2002 20:43:17 +0000 (20:43 +0000)
update hrestime interface

(cherry picked from commit 9c29a6ead1730649ca501c85482288c73e99f693)

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

index ef27ae5169e33d7357e3518ec2683983cb4ccf78..0f71fa02b3fb419df9396a15dc4ff9486c7f79e6 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 5d94973a6d6a8b998f1942e962b209cfc3f982fc..dc92b06f4ca30299e10bcafcbdbb4999c98a512e 100644 (file)
 #endif
 #include <afsconfig.h>
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index fd83ee1046b6bea08a826ad992c3d6d319380a63..f117b12b860ebeaf4d0d0556aeef270c7829c165 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL
index 7f7aab4b8cd1a92808fdd9ee2e524d29071cb0d6..6d24c0ff4fbb75282690d682fd8df3f79440bc1f 100644 (file)
 #include <afs/param.h>
 #endif
 
+#ifdef AFS_SUN59_ENV
+#include <sys/time_impl.h>
+#endif
+
 RCSID("$Header$");
 
 #ifdef KERNEL