mirror of
https://github.com/golang/go
synced 2024-11-17 00:14:50 -07:00
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 <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
cdf3249d74
commit
05c0579621
@ -46,7 +46,7 @@ var runtimePkgs = []string{
|
|||||||
"runtime/internal/atomic",
|
"runtime/internal/atomic",
|
||||||
"runtime/internal/math",
|
"runtime/internal/math",
|
||||||
"runtime/internal/sys",
|
"runtime/internal/sys",
|
||||||
"runtime/internal/syscall",
|
"internal/runtime/syscall",
|
||||||
|
|
||||||
"internal/abi",
|
"internal/abi",
|
||||||
"internal/bytealg",
|
"internal/bytealg",
|
||||||
@ -81,7 +81,7 @@ var allowAsmABIPkgs = []string{
|
|||||||
"syscall",
|
"syscall",
|
||||||
"internal/bytealg",
|
"internal/bytealg",
|
||||||
"internal/chacha8rand",
|
"internal/chacha8rand",
|
||||||
"runtime/internal/syscall",
|
"internal/runtime/syscall",
|
||||||
"runtime/internal/startlinetest",
|
"runtime/internal/startlinetest",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ var depsRules = `
|
|||||||
< internal/itoa
|
< internal/itoa
|
||||||
< internal/unsafeheader
|
< internal/unsafeheader
|
||||||
< runtime/internal/sys
|
< runtime/internal/sys
|
||||||
< runtime/internal/syscall
|
< internal/runtime/syscall
|
||||||
< runtime/internal/atomic
|
< runtime/internal/atomic
|
||||||
< runtime/internal/math
|
< runtime/internal/math
|
||||||
< runtime
|
< runtime
|
||||||
|
@ -31,7 +31,7 @@ package coverage
|
|||||||
// slot: 6 path='runtime/internal/math' hard-coded id: 6
|
// slot: 6 path='runtime/internal/math' hard-coded id: 6
|
||||||
// slot: 7 path='internal/bytealg' hard-coded id: 7
|
// slot: 7 path='internal/bytealg' hard-coded id: 7
|
||||||
// slot: 8 path='internal/goexperiment'
|
// slot: 8 path='internal/goexperiment'
|
||||||
// slot: 9 path='runtime/internal/syscall' hard-coded id: 8
|
// slot: 9 path='internal/runtime/syscall' hard-coded id: 8
|
||||||
// slot: 10 path='runtime' hard-coded id: 9
|
// slot: 10 path='runtime' hard-coded id: 9
|
||||||
// fatal error: runtime.addCovMeta
|
// fatal error: runtime.addCovMeta
|
||||||
//
|
//
|
||||||
@ -55,7 +55,7 @@ var rtPkgs = [...]string{
|
|||||||
"runtime/internal/math",
|
"runtime/internal/math",
|
||||||
"internal/bytealg",
|
"internal/bytealg",
|
||||||
"internal/goexperiment",
|
"internal/goexperiment",
|
||||||
"runtime/internal/syscall",
|
"internal/runtime/syscall",
|
||||||
"runtime",
|
"runtime",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
package syscall_test
|
package syscall_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime/internal/syscall"
|
"internal/runtime/syscall"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
@ -7,8 +7,8 @@
|
|||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"internal/runtime/syscall"
|
||||||
"runtime/internal/atomic"
|
"runtime/internal/atomic"
|
||||||
"runtime/internal/syscall"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ package runtime
|
|||||||
import (
|
import (
|
||||||
"internal/abi"
|
"internal/abi"
|
||||||
"internal/goarch"
|
"internal/goarch"
|
||||||
|
"internal/runtime/syscall"
|
||||||
"runtime/internal/atomic"
|
"runtime/internal/atomic"
|
||||||
"runtime/internal/syscall"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// N.B. RawSyscall6 is provided via linkname by runtime/internal/syscall.
|
// N.B. RawSyscall6 is provided via linkname by internal/runtime/syscall.
|
||||||
//
|
//
|
||||||
// Errno is uintptr and thus compatible with the runtime/internal/syscall
|
// Errno is uintptr and thus compatible with the internal/runtime/syscall
|
||||||
// definition.
|
// definition.
|
||||||
|
|
||||||
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
Loading…
Reference in New Issue
Block a user