harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r592445 - in /harmony/enhanced/classlib/trunk/modules: luni/src/main/native/luni/shared/cbigint.c portlib/src/main/native/port/unix/hyerrorhelpers.c
Date Tue, 06 Nov 2007 15:01:49 GMT
Author: odeakin
Date: Tue Nov  6 07:01:48 2007
New Revision: 592445

URL: http://svn.apache.org/viewvc?rev=592445&view=rev
Log:
Minor z/OS specific changes.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c?rev=592445&r1=592444&r2=592445&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/cbigint.c Tue
Nov  6 07:01:48 2007
@@ -18,7 +18,7 @@
 #include <string.h>
 #include "cbigint.h"
 
-#if defined(LINUX) || defined(FREEBSD)
+#if defined(LINUX) || defined(FREEBSD) || defined(ZOS)
 #define USE_LL
 #endif
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c?rev=592445&r1=592444&r2=592445&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
Tue Nov  6 07:01:48 2007
@@ -76,8 +76,13 @@
     }
 
   /* Copy from OS to ptBuffers */
+#if !defined(ZOS)
   strerror_r(errorCode,
              ptBuffers->errorMessageBuffer, ptBuffers->errorMessageBufferSize);
+#else
+  /* Do not have strerror_r on z/OS so use port library function instead */
+  portLibrary->str_printf(portLibrary, ptBuffers->errorMessageBuffer, ptBuffers->errorMessageBufferSize,
strerror(errorCode));
+#endif /* ZOS */
   ptBuffers->errorMessageBuffer[ptBuffers->errorMessageBufferSize - 1] = '\0';
   return ptBuffers->errorMessageBuffer;
 }



Mime
View raw message