[Mono-bugs] [Bug 71152][Nor] Changed - helper_Mono_Posix_Stat returns wrong atime on PPC arch

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 Jan 2005 16:08:26 -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 jonpryor@vt.edu.


--- shadow/71152	2005-01-13 02:09:53.000000000 -0500
+++ shadow/71152.tmp.864	2005-01-21 16:08:26.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 71152
 Product: Mono: Class Libraries
 Version: 1.0
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: WONTFIX
 Severity: Unknown
 Priority: Normal
 Component: Mono.POSIX
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: joe.gasiorek@gmail.com               
 QAContact: mono-bugs@ximian.com
@@ -22,6 +22,19 @@
 the atime (long) appears to be set correctly.
 I noticed this when using the "Syscall.lstat" method.
 Sorry if this bug should be filed under Mono and not mcs I couldn't decide
 where it should go.
+------- Additional Comments From jonpryor@vt.edu  2005-01-21 16:08 -------
+From a quick perusal, this is because
+Mono.Posix.Syscall.helper_Mono_Posix_Stat uses a C# "long" for atime
+(a 64 bit type), but helper_Mono_Posix_Stat uses a C "long" for atime.
+I'm assuming that your PPC arch is a 32-bit ABI, thus a C "long" is
+32-bits.  Consequently, the entire atime isn't being properly initialized.
+Fix: use Mono 1.1.3 or later and use Mono.Unix.Syscall.stat.  The
+Mono.Posix namespace should be considered to be DEPRECATED; Mono.Unix
+is the replacement.