/[classpath]/classpath/native/jni/java-io/java_io_File.c
ViewVC logotype

Diff of /classpath/native/jni/java-io/java_io_File.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Jan 22 22:27:02 2002 UTC revision 1.3 by cbj, Mon Feb 18 23:45:52 2002 UTC
# Line 310  Java_java_io_File_lastModifiedInternal(J Line 310  Java_java_io_File_lastModifiedInternal(J
310    const char *fname;    const char *fname;
311    struct stat buf;    struct stat buf;
312    int rc;    int rc;
313        jlong mtime;
314    
315    /* Don't use the JCL convert function because it throws an exception    /* Don't use the JCL convert function because it throws an exception
316       on failure */       on failure */
317    fname = (*env)->GetStringUTFChars(env, name, 0);    fname = (*env)->GetStringUTFChars(env, name, 0);
# Line 323  Java_java_io_File_lastModifiedInternal(J Line 324  Java_java_io_File_lastModifiedInternal(J
324    if (rc == -1)    if (rc == -1)
325      return(0);      return(0);
326    
327    return(buf.st_mtime);    // milliseconds required
328      mtime = buf.st_mtime;
329      mtime = mtime * 1000;
330      return(mtime);
331  }  }
332    
333  /*************************************************************************/  /*************************************************************************/

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26