diff options
author | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-09 11:34:48 +0000 |
---|---|---|
committer | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-09 11:34:48 +0000 |
commit | dcd7f09be26dd85247f58354709e50e97b9c2291 (patch) | |
tree | fefdff489cb0a44a37bba46faae249fc802dfed0 /eval_error.c | |
parent | 0e92dc4b729970112e8205fa1dd55b17af38d27a (diff) | |
download | ruby-dcd7f09be26dd85247f58354709e50e97b9c2291.tar.gz |
Optimize winnt_stat
* test/ruby/test_file_exhaustive.rb
(TestFileExhaustive#test_stat_special_file): add a test.
GetFileAttributesExW fails to get attributes of special files
such as pagefile.sys.
* win32/win32.c (check_valid_dir): for performance, check the path
by FindFirstFileW only if the path containts "..."
* win32/win32.c (winnt_stat): use GetFileAttributesExW instead of
FindFirstFileW since GetFileAttributesExW is faster.
Based on the patch by Dusan D. Majkic.
[ruby-core:47083] [Feature #6845]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
0 files changed, 0 insertions, 0 deletions