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); |
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 |
/*************************************************************************/ |
/*************************************************************************/ |