aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_openbsd_syscall2.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/os_openbsd_syscall2.go')
-rw-r--r--src/runtime/os_openbsd_syscall2.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/os_openbsd_syscall2.go b/src/runtime/os_openbsd_syscall2.go
index ab940510af..81cfb085aa 100644
--- a/src/runtime/os_openbsd_syscall2.go
+++ b/src/runtime/os_openbsd_syscall2.go
@@ -32,6 +32,11 @@ func closefd(fd int32) int32
func exit(code int32)
func usleep(usec uint32)
+//go:nosplit
+func usleep_no_g(usec uint32) {
+ usleep(usec)
+}
+
// write calls the write system call.
// It returns a non-negative number of bytes written or a negative errno value.
//go:noescape