]> Cypherpunks repositories - gostls13.git/commit
syscall, internal/syscall/unix: add Openat support for wasip1
authorDamien Neil <dneil@google.com>
Fri, 4 Oct 2024 21:30:31 +0000 (14:30 -0700)
committerDamien Neil <dneil@google.com>
Mon, 7 Oct 2024 19:25:11 +0000 (19:25 +0000)
commitdf97215a34935b92080858a33a1043e41c3c5ef0
tree3a2c07539621accb063a07094f5be24c3ea864d7
parent96db8cc49e716caefebb7c556c1505d30cc69743
syscall, internal/syscall/unix: add Openat support for wasip1

The syscall package is mostly frozen, but wasip1 file syscall
support was added to syscall and the Open and Openat
implementations overlap. Implement Openat in syscall for
overall simplicity.

We already have syscall.Openat for some platforms, so this
doesn't add any new functions to syscall.

For #67002

Change-Id: Ia34b12ef11fc7a3b7832e07b3546a760c23efe5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/617378
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/internal/syscall/unix/at_wasip1.go
src/syscall/fs_wasip1.go
src/syscall/syscall_wasip1.go