aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2022-05-10 09:52:20 +0200
committerRoland Shoemaker <roland@golang.org>2022-11-14 19:47:59 +0000
commit0f0aa5d8a6a0253627d58b3aa083b24a1091933f (patch)
treeb89c8dd5d6fca9617a8123fd7f4c7281a537646f /src/runtime
parentdc6b7c86df3cac29c3506ef8b251345b8d914496 (diff)
downloadgo-0f0aa5d8a6a0253627d58b3aa083b24a1091933f.tar.xz
os,syscall: File.Stat to use file handle for directories on Windows
Updates syscall.Open to support opening directories via CreateFileW. CreateFileW handles are more versatile than FindFirstFile handles. They can be used in Win32 APIs like GetFileInformationByHandle and SetFilePointerEx, which are needed by some Go APIs. Fixes #52747 Fixes #36019 Change-Id: I26a00cef9844fb4abeeb18d2f9d854162a146651 Reviewed-on: https://go-review.googlesource.com/c/go/+/405275 Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Patrik Nyblom <pnyb@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions