Skip to content

Commit bf31f56

Browse files
tklausergopherbot
authored andcommitted
unix: add MemfdSecret on linux/riscv64
Now that SYS_MEMFD_SECRET is defined on linux/riscv64, CL 398514 can be reverted to provide MemfdSecret on that platform as well. Fixes golang/go#51547 Change-Id: I48e3e029fd2a3aeb860d69faf387bc10753759c7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/411376 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent af78867 commit bf31f56

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

unix/syscall_linux_riscv64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "unsafe"
2222
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
2323
//sysnb Getuid() (uid int)
2424
//sys Listen(s int, n int) (err error)
25+
//sys MemfdSecret(flags int) (fd int, err error)
2526
//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
2627
//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
2728
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK

unix/zsyscall_linux_riscv64.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)