[OpenAFS-devel] Solaris 9 patches again (correct order diff)

Quanah Gibson-Mount quanah@stanford.edu
Tue, 11 Jun 2002 11:21:05 -0700


--==========611728533==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks to Russ Alberry for pointing out I had the diffs in the wrong order.

--Quanah

--==========611728533==========
Content-Type: text/plain; charset=us-ascii; name="rxkad_common.u.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="rxkad_common.u.txt"; size=0


--==========611728533==========
Content-Type: text/plain; charset=us-ascii; name="osi_machdep.u.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="osi_machdep.u.txt"; size=558

--- src/afs/SOLARIS/osi_machdep.h.orig	2002-04-23 18:41:36.000000000
-0700
+++ src/afs/SOLARIS/osi_machdep.h	2033-10-23 13:56:28.608017000
-0700
@@ -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);

--==========611728533==========
Content-Type: text/plain; charset=iso-8859-1; name="rx_clock.u.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="rx_clock.u.txt"; size=345

--- src/rx/rx_clock.c.orig	2033-10-23 13:56:49.218458000 -0700+++ =
src/rx/rx_clock.c	2033-10-23 13:57:16.594822000 -0700@@ -17,6 +17,10 @@ =
#endif #include <afsconfig.h> +#ifdef AFS_SUN59_ENV+#include =
<sys/time_impl.h>+#endif+ RCSID("$Header: /cvs/openafs/src/rx/rx_clock.c,v =
1.5.4.1 2001/10/13 04:21:49 shadow Exp $");  #ifdef KERNEL
--==========611728533==========
Content-Type: text/plain; charset=iso-8859-1; name="rx_event.u.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="rx_event.u.txt"; size=347

--- src/rx/rx_event.c.orig	2033-10-23 13:57:32.485723000 -0700+++ =
src/rx/rx_event.c	2033-10-23 13:57:40.241075000 -0700@@ -14,6 +14,10 @@ =
#include <afs/param.h> #endif +#ifdef AFS_SUN59_ENV+#include =
<sys/time_impl.h>+#endif+ RCSID("$Header: /cvs/openafs/src/rx/rx_event.c,v =
1.7.2.1 2002/04/19 04:42:11 zacheiss Exp $");  #ifdef KERNEL
--==========611728533==========--