Skip to content

Commit 05c0579

Browse files
panjf2000prattmic
authored andcommitted
runtime: migrate internal/syscall to internal/runtime
For #65355 Change-Id: I5fefe30dcb520159de565e61dafc74a740fc8730 Reviewed-on: https://go-review.googlesource.com/c/go/+/559715 Reviewed-by: Michael Pratt <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent cdf3249 commit 05c0579

29 files changed

+10
-10
lines changed

src/cmd/internal/objabi/pkgspecial.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var runtimePkgs = []string{
4646
"runtime/internal/atomic",
4747
"runtime/internal/math",
4848
"runtime/internal/sys",
49-
"runtime/internal/syscall",
49+
"internal/runtime/syscall",
5050

5151
"internal/abi",
5252
"internal/bytealg",
@@ -81,7 +81,7 @@ var allowAsmABIPkgs = []string{
8181
"syscall",
8282
"internal/bytealg",
8383
"internal/chacha8rand",
84-
"runtime/internal/syscall",
84+
"internal/runtime/syscall",
8585
"runtime/internal/startlinetest",
8686
}
8787

src/go/build/deps_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var depsRules = `
6969
< internal/itoa
7070
< internal/unsafeheader
7171
< runtime/internal/sys
72-
< runtime/internal/syscall
72+
< internal/runtime/syscall
7373
< runtime/internal/atomic
7474
< runtime/internal/math
7575
< runtime

src/internal/coverage/pkid.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ package coverage
3131
// slot: 6 path='runtime/internal/math' hard-coded id: 6
3232
// slot: 7 path='internal/bytealg' hard-coded id: 7
3333
// slot: 8 path='internal/goexperiment'
34-
// slot: 9 path='runtime/internal/syscall' hard-coded id: 8
34+
// slot: 9 path='internal/runtime/syscall' hard-coded id: 8
3535
// slot: 10 path='runtime' hard-coded id: 9
3636
// fatal error: runtime.addCovMeta
3737
//
@@ -55,7 +55,7 @@ var rtPkgs = [...]string{
5555
"runtime/internal/math",
5656
"internal/bytealg",
5757
"internal/goexperiment",
58-
"runtime/internal/syscall",
58+
"internal/runtime/syscall",
5959
"runtime",
6060
}
6161

src/runtime/internal/syscall/syscall_linux_test.go renamed to src/internal/runtime/syscall/syscall_linux_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package syscall_test
66

77
import (
8-
"runtime/internal/syscall"
8+
"internal/runtime/syscall"
99
"testing"
1010
)
1111

src/runtime/netpoll_epoll.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
package runtime
88

99
import (
10+
"internal/runtime/syscall"
1011
"runtime/internal/atomic"
11-
"runtime/internal/syscall"
1212
"unsafe"
1313
)
1414

src/runtime/os_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package runtime
77
import (
88
"internal/abi"
99
"internal/goarch"
10+
"internal/runtime/syscall"
1011
"runtime/internal/atomic"
11-
"runtime/internal/syscall"
1212
"unsafe"
1313
)
1414

src/syscall/syscall_linux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"unsafe"
1818
)
1919

20-
// N.B. RawSyscall6 is provided via linkname by runtime/internal/syscall.
20+
// N.B. RawSyscall6 is provided via linkname by internal/runtime/syscall.
2121
//
22-
// Errno is uintptr and thus compatible with the runtime/internal/syscall
22+
// Errno is uintptr and thus compatible with the internal/runtime/syscall
2323
// definition.
2424

2525
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)

0 commit comments

Comments
 (0)