[Mono-bugs] [Bug 71212][Nor] Changed - System.IO.File.SetLastWriteTime modifies the Creation time

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Jan 2005 11:51:32 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dick@ximian.com.


--- shadow/71212	2005-01-13 11:40:07.000000000 -0500
+++ shadow/71212.tmp.16242	2005-01-13 11:51:32.000000000 -0500
@@ -71,6 +71,33 @@
         writeTime("Creation: ", cdt);
         writeTime("Write   : ", wdt);
         writeTime("Access  : ", adt);
+------- Additional Comments From dick@ximian.com  2005-01-13 11:51 -------
+I've been reading the mac man pages for stat, utime and utimes; 
+stat(2) has:
+struct timespec st_atimespec;  /* time of last access */
+struct timespec st_mtimespec;  /* time of last data modification */
+struct timespec st_ctimespec;  /* time of last file status change */
+(I guess there is some compat going on in the library, because we
+still use st_atime, st_mtime and st_ctime in the io-layer code.)
+ctime still seems to be "status change", like in linux; I don't see a
+creation time field.  Again from the mac stat(2):
+"st_ctime     Time when file status was last changed (inode data
+modification).  Changed by the chmod(2), chown(2), link(2), mknod(2),
+rename(2), unlink(2), utimes(2) and write(2) system calls."
+utimes(2) (which obsoletes utime(3)) says:
+     The access and modification times of the file named by path or
+referenced by fd are changed as specified by the argument times."
+Is there a macos-specific syscall that sets creation time?