aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/netpoll_solaris.go4
-rw-r--r--src/runtime/os_aix.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/netpoll_solaris.go b/src/runtime/netpoll_solaris.go
index fac4829ed1..26bbe38d86 100644
--- a/src/runtime/netpoll_solaris.go
+++ b/src/runtime/netpoll_solaris.go
@@ -91,8 +91,8 @@ func errno() int32 {
return *getg().m.perrno
}
-func fcntl(fd, cmd int32, arg uintptr) int32 {
- return int32(sysvicall3(&libc_fcntl, uintptr(fd), uintptr(cmd), arg))
+func fcntl(fd, cmd, arg int32) int32 {
+ return int32(sysvicall3(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg)))
}
func port_create() int32 {
diff --git a/src/runtime/os_aix.go b/src/runtime/os_aix.go
index ff2588f42f..9a6b8aec7c 100644
--- a/src/runtime/os_aix.go
+++ b/src/runtime/os_aix.go
@@ -360,8 +360,8 @@ func setupSystemConf() {
}
//go:nosplit
-func fcntl(fd, cmd int32, arg uintptr) int32 {
- r, _ := syscall3(&libc_fcntl, uintptr(fd), uintptr(cmd), arg)
+func fcntl(fd, cmd, arg int32) int32 {
+ r, _ := syscall3(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg))
return int32(r)
}
@@ -373,5 +373,5 @@ func closeonexec(fd int32) {
//go:nosplit
func setNonblock(fd int32) {
flags := fcntl(fd, _F_GETFL, 0)
- fcntl(fd, _F_SETFL, uintptr(flags|_O_NONBLOCK))
+ fcntl(fd, _F_SETFL, flags|_O_NONBLOCK)
}