+2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
+
+ * wrapper.c (mono_wrapper_fstat): The MonoWrapperStat namespace is
+ mst_ now, so update this code. Also fix a copy/paste-o that
+ assigned st.st_ctime to buf->mst_mtime.
+ (mono_wrapper_stat): Same here.
+
+ * genwrapper.pl: Solaris does some nasty macro hadckery action for
+ st_[a,c,m]time and so lets namespace our wrapper members as
+ mst_[a,c,m]time to avoid namespace problems.
Sun Feb 10 14:18:50 CET 2002 Paolo Molaro <lupus@ximian.com>
if (fstat ((int)fd, &fs) == -1)
return -errno;
- buf->st_dev = fs.st_dev;
- buf->st_mode = fs.st_mode;
- buf->st_nlink = fs.st_nlink;
- buf->st_uid = fs.st_uid;
- buf->st_gid = fs.st_gid;
- buf->st_size = fs.st_size;
- buf->st_atime = fs.st_atime;
- buf->st_mtime = fs.st_ctime;
- buf->st_ctime = fs.st_ctime;
+ buf->mst_dev = fs.st_dev;
+ buf->mst_mode = fs.st_mode;
+ buf->mst_nlink = fs.st_nlink;
+ buf->mst_uid = fs.st_uid;
+ buf->mst_gid = fs.st_gid;
+ buf->mst_size = fs.st_size;
+ buf->mst_atime = fs.st_atime;
+ buf->mst_mtime = fs.st_mtime;
+ buf->mst_ctime = fs.st_ctime;
return 0;
}
if (stat (path, &fs) != 0)
return errno;
- buf->st_dev = fs.st_dev;
- buf->st_mode = fs.st_mode;
- buf->st_nlink = fs.st_nlink;
- buf->st_uid = fs.st_uid;
- buf->st_gid = fs.st_gid;
- buf->st_size = fs.st_size;
- buf->st_atime = fs.st_atime;
- buf->st_mtime = fs.st_ctime;
- buf->st_ctime = fs.st_ctime;
+ buf->mst_dev = fs.st_dev;
+ buf->mst_mode = fs.st_mode;
+ buf->mst_nlink = fs.st_nlink;
+ buf->mst_uid = fs.st_uid;
+ buf->mst_gid = fs.st_gid;
+ buf->mst_size = fs.st_size;
+ buf->mst_atime = fs.st_atime;
+ buf->mst_mtime = fs.st_mtime;
+ buf->mst_ctime = fs.st_ctime;
return 0;
}