commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r790369 - in /commons/sandbox/runtime/trunk/src/main/native/os: unix/ios.c win32/ios.c
Date Wed, 01 Jul 2009 20:40:53 GMT
Author: mturk
Date: Wed Jul  1 20:40:53 2009
New Revision: 790369

URL: http://svn.apache.org/viewvc?rev=790369&view=rev
Log:
Allocate page 0 for system use

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/ios.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/ios.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/ios.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/ios.c?rev=790369&r1=790368&r2=790369&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/ios.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/ios.c Wed Jul  1 20:40:53 2009
@@ -109,8 +109,9 @@
     acr_ioh_tab  = (acr_ioh *)calloc(sizeof(acr_ioh), __ioh_size);
     if (acr_ioh_tab) {
         acr_ioh_tab[acr_ioh_mask].h = INVALID_HANDLE_VALUE;
-        /* XXX: Allocate slots 0, 1 and 2 for stdio?
+        /* Allocate slots 0 ... 7 for system use.
          */
+        __bitmap[0] = 0xFF;
     }
     else
         return errno;
@@ -183,7 +184,7 @@
             return x;
         }
     }
-    for (i = 0; i < __bmp_hint; i++) {
+    for (i = 1; i < __bmp_hint; i++) {
         if (__bitmap[i] != 0xFF) {
             x = (i << 3) + __sbit_mask[__bitmap[i]];
             acr_ioh_tab[x].h     = h;

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/ios.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/ios.c?rev=790369&r1=790368&r2=790369&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/ios.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/ios.c Wed Jul  1 20:40:53 2009
@@ -85,8 +85,9 @@
     acr_ioh_tab  = (acr_ioh *)calloc(sizeof(acr_ioh), __ioh_size);
     if (acr_ioh_tab) {
         acr_ioh_tab[acr_ioh_mask].h = INVALID_HANDLE_VALUE;
-        /* XXX: Allocate slots 0, 1 and 2 for stdio?
+        /* Allocate slots 0 ... 7 for system use.
          */
+        __bitmap[0] = 0xFF;
     }
     else
         return errno;
@@ -160,7 +161,7 @@
             return x;
         }
     }
-    for (i = 0; i < __bmp_hint; i++) {
+    for (i = 1; i < __bmp_hint; i++) {
         if (__bitmap[i] != 0xFF) {
             x = (i << 3) + __sbit_mask[__bitmap[i]];
             acr_ioh_tab[x].h     = h;



Mime
View raw message