* In 64 bit HP-UX the timeval structure has a 64 bit member.
*/
-
-#if defined(AFS_HPUX_ENV) || (defined(AFS_SUN57_ENV) && !defined(AFS_SUN510_ENV)) || defined(AFS_LINUX_64BIT_KERNEL) || (defined(AFS_SGI61_ENV) && defined(KERNEL) && defined(_K64U64))
+#if defined(AFS_HPUX_ENV) || defined(AFS_LINUX_64BIT_KERNEL) || (defined(AFS_SGI61_ENV) && defined(KERNEL) && defined(_K64U64))
typedef struct {
afs_int32 tv_sec;
afs_int32 tv_usec;
} osi_timeval_t;
+#elif defined(AFS_SUN57_ENV)
+typedef struct timeval32 osi_timeval_t;
#else
typedef struct timeval osi_timeval_t;
#endif /* AFS_SGI61_ENV */
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
/**
* These defines are for the 64 bit Solaris 7 port
#define AFS_64BIT_INO 1
#endif
-/**
- * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
- * use 32 bit quantities for time in afs, we now use uniqtime32
- */
-#if defined(AFS_SUN57_64BIT_ENV)
-#undef osi_GetTime
-#define osi_GetTime(x) uniqtime32(x)
-#endif
-
-
-
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_KFREE kmem_free
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
/**
* These defines are for the 64 bit Solaris 7 port
#define AFS_64BIT_INO 1
#endif
-/**
- * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
- * use 32 bit quantities for time in afs, we now use uniqtime32
- */
-#if defined(AFS_SUN57_64BIT_ENV)
-#undef osi_GetTime
-#define osi_GetTime(x) uniqtime32(x)
-#endif
-
-
-
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_KFREE kmem_free
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
/**
* These defines are for the 64 bit Solaris 7 port
#define AFS_64BIT_INO 1
#endif
-/**
- * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
- * use 32 bit quantities for time in afs, we now use uniqtime32
- */
-#if defined(AFS_SUN57_64BIT_ENV)
-#undef osi_GetTime
-#define osi_GetTime(x) uniqtime32(x)
-#endif
-
-
-
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_KFREE kmem_free
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
/**
* These defines are for the 64 bit Solaris 7 port
#define AFS_64BIT_INO 1
#endif
-/**
- * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
- * use 32 bit quantities for time in afs, we now use uniqtime32
- */
-#if defined(AFS_SUN57_64BIT_ENV)
-#undef osi_GetTime
-#define osi_GetTime(x) uniqtime32(x)
-#endif
-
-
-
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_KFREE kmem_free
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
/**
* These defines are for the 64 bit Solaris 7 port
#define AFS_64BIT_INO 1
#endif
-/**
- * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
- * use 32 bit quantities for time in afs, we now use uniqtime32
- */
-#if defined(AFS_SUN57_64BIT_ENV)
-#undef osi_GetTime
-#define osi_GetTime(x) uniqtime32(x)
-#endif
-
-
-
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_KFREE kmem_free
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
#define AFS_UIOUSER UIO_USERSPACE
#define AFS_CLBYTES MCLBYTES
#define AFS_MINCHANGE 2
-#define osi_GetTime(x) uniqtime(x)
+#define osi_GetTime(x) uniqtime32(x)
#define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
#define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
(cv)->usec = (afs_int32)tv.tv_usec; \
END
#else /* defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL) */
-#define clock_GetTime(cv) osi_GetTime((struct timeval *)cv)
+#define clock_GetTime(cv) osi_GetTime((osi_timeval_t *)(cv))
#endif /* defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL) */
#endif
#define clock_Sec() osi_Time()
void
uuid__get_os_time(uuid_time_t * os_time)
{
- struct timeval tp;
+ osi_timeval_t tp;
osi_GetTime(&tp);
os_time->hi = tp.tv_sec;