harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r996567 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
Date Mon, 13 Sep 2010 15:05:38 GMT
Author: odeakin
Date: Mon Sep 13 15:05:38 2010
New Revision: 996567

URL: http://svn.apache.org/viewvc?rev=996567&view=rev
Log:
On z/OS, ensure that stdout is only line buffered and has a maximum buffer of 128.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c?rev=996567&r1=996566&r2=996567&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/shared/luniglob.c
Mon Sep 13 15:05:38 2010
@@ -57,6 +57,11 @@ JNI_OnLoad (JavaVM * vm, void *reserved)
   char charset[CHARSETBUFF];
   vmiError propRes;
 
+#ifdef ZOS
+  /* Ensure that stdout only line buffers and has a maximum buffer of 128 */
+  setvbuf(stdout, NULL, _IOLBF, 128);
+#endif
+
   /* Query the VM interface */
   vmInterface = VMI_GetVMIFromJavaVM (vm);
   if (!vmInterface)



Mime
View raw message