harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r792449 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
Date Thu, 09 Jul 2009 08:40:45 GMT
Author: odeakin
Date: Thu Jul  9 08:40:45 2009
New Revision: 792449

URL: http://svn.apache.org/viewvc?rev=792449&view=rev
Log:
Add "-FD_BIAS" back onto file descriptors for zOS.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c?rev=792449&r1=792448&r2=792449&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
Thu Jul  9 08:40:45 2009
@@ -181,7 +181,7 @@
     vectors[i].iov_len = lengths[i];
     i++;
   }
-  totalRead = readv(fd, vectors, size);
+  totalRead = readv(fd - FD_BIAS, vectors, size);
   if(bufsCopied){
     (*env)->ReleaseLongArrayElements(env, jbuffers, bufs, JNI_ABORT);
   }
@@ -223,7 +223,7 @@
     vectors[i].iov_len = lengths[i];
     i++;
   }
-  totalWritten = writev(fd, vectors, size);
+  totalWritten = writev(fd - FD_BIAS, vectors, size);
   if(bufsCopied){
     (*env)->ReleaseLongArrayElements(env, jbuffers, bufs, JNI_ABORT);
   }
@@ -255,7 +255,7 @@
 #if defined(AIX) || defined(ZOS)
   {
     struct sf_parms parms;
-    parms.file_descriptor = (int)fd;
+    parms.file_descriptor = (int)fd - FD_BIAS;
     parms.file_offset = (off64_t)offset;
     parms.file_bytes = count;
     parms.header_data = 0;



Mime
View raw message