]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: update broken links
authorIan Lance Taylor <iant@golang.org>
Mon, 9 May 2022 22:33:22 +0000 (15:33 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 10 May 2022 21:29:25 +0000 (21:29 +0000)
Remove one link which isn't very interesting, and update another to
point to the current location.

Fixes #52753

Change-Id: I5f53ede35b0ded197bc0e6d41eabf28d736de5b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/405296
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/syscall/syscall_windows.go

index adc865fd5ffbee6b538bab07ff59d33a409892d7..ebaf84343d13ddd3f00bf9ae81462ab0b9400807 100644 (file)
@@ -448,12 +448,11 @@ func setFilePointerEx(handle Handle, distToMove int64, newFilePointer *int64, wh
                default:
                        panic("unsupported 32-bit architecture")
                case "386":
-                       // distToMove is a LARGE_INTEGER:
-                       // https://msdn.microsoft.com/en-us/library/windows/desktop/aa383713(v=vs.85).aspx
+                       // distToMove is a LARGE_INTEGER, which is 64 bits.
                        _, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 5, uintptr(handle), uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence), 0)
                case "arm":
                        // distToMove must be 8-byte aligned per ARM calling convention
-                       // https://msdn.microsoft.com/en-us/library/dn736986.aspx#Anchor_7
+                       // https://docs.microsoft.com/en-us/cpp/build/overview-of-arm-abi-conventions#stage-c-assignment-of-arguments-to-registers-and-stack
                        _, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 6, uintptr(handle), 0, uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence))
                }
        }