- added file-mtime

- Ikarus fasl files and source files are not compared using 
   (< (file-mtime ikfasl) (file-mtime filename))
  instead of
   (<= (file-ctime ikfasl) (file-ctime filename))
This commit is contained in:
Abdulaziz Ghuloum
2008-11-01 07:28:08 -04:00
parent 74a1d302ec
commit 069bd683cd
8 changed files with 31 additions and 10 deletions
+13
View File
@@ -298,6 +298,19 @@ ikrt_file_ctime(ikptr filename, ikptr res){
return fix(0);
}
ikptr
ikrt_file_mtime(ikptr filename, ikptr res){
struct stat s;
int err = stat((char*)(filename + off_bytevector_data), &s);
if(err) {
return ik_errno_to_code();
}
ref(res, off_car) = fix(s.st_mtime);
ref(res, off_cdr) = 0;
return fix(0);
}
+2 -2
View File
@@ -246,13 +246,13 @@ ik_munmap(ikptr mem, unsigned long int size){
assert(((-pagesize) & (int)mem) == (int)mem);
total_allocated_pages -= pages;
#ifndef __CYGWIN__
int err = munmap((char*)(long)mem, mapsize);
int err = munmap((char*)mem, mapsize);
if(err != 0){
fprintf(stderr, "ik_munmap failed: %s\n", strerror(errno));
exit(-1);
}
#else
win_munmap(mem, mapsize);
win_munmap((char*)mem, mapsize);
#endif
#ifndef NDEBUG
fprintf(stderr, "UNMAP 0x%08x .. 0x%08x\n", (int)mem,