]> Cypherpunks.ru repositories - gostls13.git/commitdiff
syscall: regen zsyscall for openbsd/riscv64
authorJoel Sing <joel@sing.id.au>
Sat, 28 Oct 2023 16:14:32 +0000 (03:14 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 1 Nov 2023 07:10:03 +0000 (07:10 +0000)
This removes the unused writelen function, which was cleaned up for other
platforms in CL#529035.

Change-Id: I1999dc81276763bdc73d8590c16729447c4e8538
Reviewed-on: https://go-review.googlesource.com/c/go/+/538119
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Joel Sing <joel@sing.id.au>

src/syscall/zsyscall_openbsd_riscv64.go

index c7f8edc8dccec734a1d3c27fd83e81d91df75969..67b048a9738860489d1f1524488a0ca3155e06a8 100644 (file)
@@ -1705,17 +1705,6 @@ func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
-       r0, _, e1 := syscall(abi.FuncPCABI0(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
-       n = int(r0)
-       if e1 != 0 {
-               err = errnoErr(e1)
-       }
-       return
-}
-
-// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
-
 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
        r0, _, e1 := syscallX(abi.FuncPCABI0(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
        newoffset = int64(r0)