Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 29785 invoked from network); 25 Jan 2007 11:47:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2007 11:47:47 -0000 Received: (qmail 29494 invoked by uid 500); 25 Jan 2007 11:47:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 29468 invoked by uid 500); 25 Jan 2007 11:47:52 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 29459 invoked by uid 99); 25 Jan 2007 11:47:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 03:47:52 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 03:47:46 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id F04761A981C; Thu, 25 Jan 2007 03:47:25 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r499750 - /harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c Date: Thu, 25 Jan 2007 11:47:25 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070125114725.F04761A981C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Thu Jan 25 03:47:25 2007 New Revision: 499750 URL: http://svn.apache.org/viewvc?view=rev&rev=499750 Log: Avoid clash on function names on FreeBSD. Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c?view=diff&rev=499750&r1=499749&r2=499750 ============================================================================== --- harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c (original) +++ harmony/enhanced/classlib/trunk/modules/portlib/src/test/native/hyfile/shared/hyfile.c Thu Jan 25 03:47:25 2007 @@ -51,7 +51,7 @@ if (!fd) { fprintf(stderr, "Failed to open hytest.tmp for write %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -59,7 +59,7 @@ printf(" hyfile_write wrote %d bytes\n", bytes); if (bytes != 7) { fprintf(stderr, "hyfile_write wrote %d bytes not %d\n", bytes, 7); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -67,7 +67,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_write_text write failed: %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -76,7 +76,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_sync failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -84,7 +84,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_close failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -92,7 +92,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_move failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -102,7 +102,7 @@ if (!fd) { fprintf(stderr, "Failed to open hytest.tmp2 for read %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -110,7 +110,7 @@ printf(" offset = %d\n", offset); if (offset != 7) { fprintf(stderr, "Failed to seek hytest.tmp2\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -120,13 +120,13 @@ printf(" buf = %s\n", buf); if (bytes != 10) { fprintf(stderr, "Failed to read hytest.tmp2\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } if (strcmp(buf, "testing123") != 0) { fprintf(stderr, "Failed to read correct content from hytest.tmp2\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -134,7 +134,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_close failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -142,13 +142,13 @@ printf(" length = %d\n", length); if (length != 18) { fprintf(stderr, "hytest.tmp2 has incorrect length\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } if (hyportLibrary.file_attr(&hyportLibrary, "hytest.tmp2") != HyIsFile) { fprintf(stderr, "hytest.tmp2 has incorrect type\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -156,7 +156,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_unlink failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -164,13 +164,13 @@ if (rc != 0) { fprintf(stderr, "hyfile_mkdir failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } if (hyportLibrary.file_attr(&hyportLibrary, "hytest.dir.tmp") != HyIsDir) { fprintf(stderr, "hytest.dir.tmp has incorrect type\n"); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -178,7 +178,7 @@ if (rc != 0) { fprintf(stderr, "hyfile_unlinkdir failed %s\n", hyportLibrary.error_last_error_message(&hyportLibrary)); - cleanup(hyportLibrary); + hycleanup(hyportLibrary); exit(1); } @@ -191,11 +191,9 @@ return 0; } -void cleanup(HyPortLibrary hyportLibrary) +void hycleanup(HyPortLibrary hyportLibrary) { hyportLibrary.file_unlink(&hyportLibrary, "hytest.tmp"); hyportLibrary.file_unlink(&hyportLibrary, "hytest.tmp2"); hyportLibrary.file_unlinkdir(&hyportLibrary, "hytest.dir.tmp"); } - -