From d86ec924993bfb824dfb6f618a46ea205fdbf261 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Wed, 20 Aug 2025 12:39:31 +0200 Subject: internal/syscall/windows: increase internal Windows O_ flags values The lowercase o_ flags are invented values. These conflict with constants that will soon be allowed by os.OpenFile, which values will be mandated by the Windows API. To avoid this overlap, the internal values have been increased to the 33-63 bit range, as the Windows ones are in the 0-32 bit range. Updates #73676 Change-Id: I0f657f3ed3403de150f1730a5a65ae887a18a4e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/697363 Reviewed-by: Damien Neil Reviewed-by: Carlos Amedee LUCI-TryBot-Result: Go LUCI --- src/syscall/types_windows.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/syscall') diff --git a/src/syscall/types_windows.go b/src/syscall/types_windows.go index 92fa796a80..dd21fc8329 100644 --- a/src/syscall/types_windows.go +++ b/src/syscall/types_windows.go @@ -48,10 +48,10 @@ const ( O_SYNC = 0x01000 O_ASYNC = 0x02000 O_CLOEXEC = 0x80000 - o_DIRECTORY = 0x100000 // used by internal/syscall/windows - o_NOFOLLOW_ANY = 0x20000000 // used by internal/syscall/windows - o_OPEN_REPARSE = 0x40000000 // used by internal/syscall/windows - o_WRITE_ATTRS = 0x80000000 // used by internal/syscall/windows + o_DIRECTORY = 0x100000000 // used by internal/syscall/windows + o_NOFOLLOW_ANY = 0x200000000 // used by internal/syscall/windows + o_OPEN_REPARSE = 0x400000000 // used by internal/syscall/windows + o_WRITE_ATTRS = 0x800000000 // used by internal/syscall/windows ) const ( -- cgit v1.3