aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_openbsd.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-05-18 16:42:30 -0400
committerGopher Robot <gobot@golang.org>2022-05-19 15:32:36 +0000
commit0aa8a87b5d8f9425ed4c1b66b85e453bef8b7f29 (patch)
tree32b64e1daaa1f6d87ead56e7e41a92eb7514366c /src/syscall/syscall_openbsd.go
parent9bc544a1580a67166060aabc5af91227092f6a39 (diff)
downloadgo-0aa8a87b5d8f9425ed4c1b66b85e453bef8b7f29.tar.xz
syscall: make //sys lines not doc comments
If they are doc comments then gofmt will put a space between // and sys. Most of syscall was already this way, following CL 7324056 (in 2013). These were not. Change-Id: Ie6ebf82809c199d0d06b87c86045bbb62b687d5f Reviewed-on: https://go-review.googlesource.com/c/go/+/407136 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/syscall/syscall_openbsd.go')
-rw-r--r--src/syscall/syscall_openbsd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall/syscall_openbsd.go b/src/syscall/syscall_openbsd.go
index 19cf1f4985..75217344df 100644
--- a/src/syscall/syscall_openbsd.go
+++ b/src/syscall/syscall_openbsd.go
@@ -70,6 +70,7 @@ func Pipe(p []int) error {
}
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
+
func Pipe2(p []int, flags int) error {
if len(p) != 2 {
return EINVAL
@@ -84,6 +85,7 @@ func Pipe2(p []int, flags int) error {
}
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
+
func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
var rsa RawSockaddrAny
var len _Socklen = SizeofSockaddrAny
@@ -103,6 +105,7 @@ func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
}
//sys getdents(fd int, buf []byte) (n int, err error)
+
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
return getdents(fd, buf)
}