Remove dependency on linux packages in netstack.

PiperOrigin-RevId: 536560224
This commit is contained in:
Lucas Manning
2023-05-30 18:06:41 -07:00
committed by gVisor bot
parent 8ee5c3dfea
commit d23e3cca23
3 changed files with 2 additions and 7 deletions
-2
View File
@@ -12,8 +12,6 @@ go_library(
],
visibility = ["//:sandbox"],
deps = [
"//pkg/abi/linux/errno",
"//pkg/errors",
"//pkg/log",
"//pkg/waiter",
],
+2 -3
View File
@@ -24,11 +24,10 @@ package context
import (
"context"
"errors"
"sync"
"time"
"gvisor.dev/gvisor/pkg/abi/linux/errno"
"gvisor.dev/gvisor/pkg/errors"
"gvisor.dev/gvisor/pkg/log"
"gvisor.dev/gvisor/pkg/waiter"
)
@@ -102,7 +101,7 @@ func (nt *NoTask) Block(C <-chan struct{}) error {
}
select {
case <-nt.cancel:
return errors.New(errno.EINTR, "interrupted system call") // Interrupted.
return errors.New("interrupted system call") // Interrupted.
case <-C:
return nil
}
-2
View File
@@ -70,8 +70,6 @@ deps_test(
"//pkg/sync/locking",
"//pkg/waiter",
"//pkg/xdp",
"//pkg/abi/linux/errno",
"//pkg/errors",
# Other deps.
"@com_github_google_btree//:go_default_library",