Rename pselect to pselect6

The actual syscall name is pselect6. This name is used in Docker's
default seccomp profile.

PiperOrigin-RevId: 503297316
This commit is contained in:
Fabricio Voznika
2023-01-19 16:38:48 -08:00
committed by gVisor bot
parent fa72d6e37d
commit 0e5d0cc13a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -322,7 +322,7 @@ var AMD64 = &kernel.SyscallTable{
267: syscalls.Supported("readlinkat", Readlinkat),
268: syscalls.Supported("fchmodat", Fchmodat),
269: syscalls.Supported("faccessat", Faccessat),
270: syscalls.Supported("pselect", Pselect),
270: syscalls.Supported("pselect6", Pselect6),
271: syscalls.Supported("ppoll", Ppoll),
272: syscalls.PartiallySupported("unshare", Unshare, "Mount, cgroup namespaces not supported. Network namespaces supported but must be empty.", nil),
273: syscalls.Supported("set_robust_list", SetRobustList),
@@ -503,7 +503,7 @@ var ARM64 = &kernel.SyscallTable{
69: syscalls.SupportedPoint("preadv", Preadv, PointPreadv),
70: syscalls.SupportedPoint("pwritev", Pwritev, PointPwritev),
71: syscalls.Supported("sendfile", Sendfile),
72: syscalls.Supported("pselect", Pselect),
72: syscalls.Supported("pselect6", Pselect6),
73: syscalls.Supported("ppoll", Ppoll),
74: syscalls.SupportedPoint("signalfd4", Signalfd4, PointSignalfd4),
75: syscalls.ErrorWithEvent("vmsplice", linuxerr.ENOSYS, "", []string{"gvisor.dev/issue/138"}), // TODO(b/29354098)
+2 -2
View File
@@ -508,8 +508,8 @@ type sigSetWithSize struct {
sizeofSigset uint64
}
// Pselect implements linux syscall pselect(2).
func Pselect(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.SyscallControl, error) {
// Pselect6 implements linux syscall pselect6(2).
func Pselect6(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.SyscallControl, error) {
nfds := int(args[0].Int()) // select(2) uses an int.
readFDs := args[1].Pointer()
writeFDs := args[2].Pointer()