From: David Y. <dav...@in...> - 2011-02-14 13:46:01
|
This patch (committed as revision 170127) provides more functionality to libstd::stat. New fields in 'struct stat' have been added. New core functions: file_lastaccess_sutc, file_lastwrite_sutc, file_filecreation_sutc, file_mode_flags, file_uid, file_gid Implementation in MSCorelibWrapper (-> MSCorelibWrapper.dll): file_filecreation_sutc() tries to behave as 'struct stat::st_ctime', but it is not exactly the same. st_ctime is the time of the last change of status (mode, owner, etc.), while file_filecreation_sutc() returns creation time. This difference arises from .NET design. file_mode_flags() is only a partial approximation. I did my best with the permits in .NET, but there is not a perfect match. file_uid() and file_gid() returns 0 Implementation in __host.c (-> optimized MSCorelibWrapper.dll, libstd.so): Each core function uses a call to the host 'stat()' in order to get the requested value (may be some kind of caching implementation could improve this) Affected benchmarks: 164.gzip |