< prev index next >

src/solaris/classes/sun/nio/fs/UnixFileAttributeViews.java

Print this page
rev 8219 : 8024900: PPC64: Enable new build on AIX (jdk part)
8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art, erikj
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com

@@ -90,11 +90,12 @@
                 long modValue = lastModifiedTime.to(TimeUnit.MICROSECONDS);
                 long accessValue= lastAccessTime.to(TimeUnit.MICROSECONDS);
 
                 boolean retry = false;
                 try {
-                    futimes(fd, accessValue, modValue);
+                    // Added path of file "fd" for platform ports (only needed on AIX and HPUX)
+                    futimes(fd, accessValue, modValue, file);
                 } catch (UnixException x) {
                     // if futimes fails with EINVAL and one/both of the times is
                     // negative then we adjust the value to the epoch and retry.
                     if (x.errno() == UnixConstants.EINVAL &&
                         (modValue < 0L || accessValue < 0L)) {

@@ -105,11 +106,12 @@
                 }
                 if (retry) {
                     if (modValue < 0L) modValue = 0L;
                     if (accessValue < 0L) accessValue= 0L;
                     try {
-                        futimes(fd, accessValue, modValue);
+                        // Added path of file "fd" for platform ports (only needed on AIX and HPUX)
+                        futimes(fd, accessValue, modValue, file);
                     } catch (UnixException x) {
                         x.rethrowAsIOException(file);
                     }
                 }
             } finally {
< prev index next >