On 27/04/2010 13:37, Petr Rockai wrote:
Simon Marlow<[email protected]>  writes:
I see the problem.  In GHC 6.10.x, System.Posix.Internals.lstat was calling the
32-bit stat function, but the accessor functions st_sizeof and co are expecting
the 64-bit stat struct.  Luckilly we never tickled the bug in GHC (and strictly
speaking, System.Posix.Internals is not a public API).
I see. Well, indeed, strictly speaking this is not a public API. On the
other hand, there's no public API that can be used to do a stat without
considerable overhead. (The problem with the public API is that it uses
unsafePerformIO which is *very* expensive...)

Which public API are you referring to? I'd recommend using System.Win32 for this kind of thing on Windows if possible. If you call lstat you're already going through a layer of translation, namely the msvcrt runtime.

Cheers,
        Simon
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to