Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 44783 invoked from network); 1 Jul 2009 20:41:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 20:41:07 -0000 Received: (qmail 28652 invoked by uid 500); 1 Jul 2009 20:41:17 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 28568 invoked by uid 500); 1 Jul 2009 20:41:17 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 28559 invoked by uid 99); 1 Jul 2009 20:41:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 20:41:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 20:41:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 70413238889D; Wed, 1 Jul 2009 20:40:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090701204053.70413238889D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;