go/src/internal/syscall/windows
qmuntal 628b1015b9 os: add os.ModeSocket support to os.Stat on windows
Unix sockets are identified by the IO_REPARSE_TAG_AF_UNIX reparse tag.

Teach fileStat.Mode() to recognize this tag and set the os.ModeSocket
bit in such case.

Note that there is a bug starting in Windows 19H1 until 20H1 that
makes the IO_REPARSE_TAG_AF_UNIX tag not being set for unix sockets.
This CL doesn't provide a workaround for this bug.

Fixes #33357.

Change-Id: Iea8f24b20672c8d4b03f55ef298d128431dc3fac
Reviewed-on: https://go-review.googlesource.com/c/go/+/561937
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2024-02-12 07:15:06 +00:00
..
registry all: clean unnecessary casts 2023-09-18 20:01:34 +00:00
sysdll
exec_windows_test.go all: use ^TestName$ regular pattern for invoking a single test 2023-09-05 23:35:29 +00:00
memory_windows.go
mksyscall.go
net_windows.go
psapi_windows.go
reparse_windows.go os: add os.ModeSocket support to os.Stat on windows 2024-02-12 07:15:06 +00:00
security_windows.go net: respect hosts file when resolving names for Windows 2023-09-04 07:21:38 +00:00
symlink_windows.go os: support file systems without file IDs when reading directories on windows 2023-08-16 15:15:27 +00:00
syscall_windows.go runtime,internal/syscall/windows: remove long path support check 2024-02-07 20:54:38 +00:00
zsyscall_windows.go runtime,internal/poll: move websocket handling out of the runtime on Windows 2024-01-23 15:36:19 +00:00