[Vm-dev] [commit][3168] As per VMMaker.oscog-eem.974, fix 64-bit issues in the AsynchFilePlugin.

commits at squeakvm.org commits at squeakvm.org
Wed Dec 10 23:23:28 UTC 2014


Revision: 3168
Author:   eliot
Date:     2014-12-10 15:23:27 -0800 (Wed, 10 Dec 2014)
Log Message:
-----------
As per VMMaker.oscog-eem.974, fix 64-bit issues in the AsynchFilePlugin.

Modified Paths:
--------------
    trunk/platforms/win32/plugins/AsynchFilePlugin/sqWin32AsyncFilePrims.c

Modified: trunk/platforms/win32/plugins/AsynchFilePlugin/sqWin32AsyncFilePrims.c
===================================================================
--- trunk/platforms/win32/plugins/AsynchFilePlugin/sqWin32AsyncFilePrims.c	2014-12-10 21:04:05 UTC (rev 3167)
+++ trunk/platforms/win32/plugins/AsynchFilePlugin/sqWin32AsyncFilePrims.c	2014-12-10 23:23:27 UTC (rev 3168)
@@ -87,12 +87,12 @@
 
 /*** Exported Functions ***/
 int asyncFileClose(AsyncFile *f);
-int asyncFileOpen(AsyncFile *f, int fileNamePtr, int fileNameSize, int writeFlag, int semaIndex);
+int asyncFileOpen(AsyncFile *f, long fileNamePtr, int fileNameSize, int writeFlag, int semaIndex);
 int asyncFileRecordSize();
-int asyncFileReadResult(AsyncFile *f, int bufferPtr, int bufferSize);
+int asyncFileReadResult(AsyncFile *f, long bufferPtr, int bufferSize);
 int asyncFileReadStart(AsyncFile *f, int fPosition, int count);
 int asyncFileWriteResult(AsyncFile *f);
-int asyncFileWriteStart(AsyncFile *f, int fPosition, int bufferPtr, int bufferSize);
+int asyncFileWriteStart(AsyncFile *f, int fPosition, long bufferPtr, int bufferSize);
 
 
 /*****************************************************************************
@@ -205,7 +205,7 @@
   return 1;
 }
 
-int asyncFileOpen(AsyncFile *f, int fileNamePtr, int fileNameSize, 
+int asyncFileOpen(AsyncFile *f, long fileNamePtr, int fileNameSize, 
 		  int writeFlag, int semaIndex) {
   /* Opens the given file using the supplied AsyncFile structure to record
      its state. Fails with no side effects if f is already open. Files are
@@ -278,7 +278,7 @@
   return 1;
 }
 
-int asyncFileReadResult(AsyncFile *f, int bufferPtr, int bufferSize) {
+int asyncFileReadResult(AsyncFile *f, long bufferPtr, int bufferSize) {
   /* Copy up to bufferSize bytes from the buffer of the last read operation
      into the given Squeak buffer, and return the number of bytes copied.
      Negative values indicate:
@@ -341,7 +341,7 @@
   return state->bytesTransferred;
 }
 
-int asyncFileWriteStart(AsyncFile *f, int fPosition, int bufferPtr, int bufferSize) {
+int asyncFileWriteStart(AsyncFile *f, int fPosition, long bufferPtr, int bufferSize) {
   /* Start an asynchronous operation to write bufferSize bytes to the given file
      starting at the given file position. The file''s semaphore will be signalled when
      the operation is complete. The client may then use asyncFileWriteResult() to



More information about the Vm-dev mailing list