summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/libc_linux.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-03-06 11:00:53 +0100
committerLibravatar GitHub <noreply@github.com>2023-03-06 11:00:53 +0100
commitb344c2c8f4b2ef98effe2f19d70f63c5a835ba86 (patch)
treec1c75f5a0c55a118a0e34e6890bae0230133d25c /vendor/modernc.org/libc/libc_linux.go
parent[bugfix] internal server error on search not found (#1590) (diff)
downloadgotosocial-b344c2c8f4b2ef98effe2f19d70f63c5a835ba86.tar.xz
[chore] Update uptrace/bun and modernc/sqlite dependencies (#1598)
* [chore] Update bun from 1.1.10 -> 1.1.12 * [chore] bump modernc/sqlite 1.20.4 -> 1.21.0
Diffstat (limited to 'vendor/modernc.org/libc/libc_linux.go')
-rw-r--r--vendor/modernc.org/libc/libc_linux.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/libc_linux.go b/vendor/modernc.org/libc/libc_linux.go
index b2910d9e1..1c2f48262 100644
--- a/vendor/modernc.org/libc/libc_linux.go
+++ b/vendor/modernc.org/libc/libc_linux.go
@@ -1592,3 +1592,10 @@ func Xreadlinkat(t *TLS, dirfd int32, pathname, buf uintptr, bufsiz types.Size_t
return types.Ssize_t(n)
}
+
+// int nanosleep(const struct timespec *req, struct timespec *rem);
+func Xnanosleep(t *TLS, req, rem uintptr) int32 {
+ v := *(*ctime.Timespec)(unsafe.Pointer(req))
+ time.Sleep(time.Second*time.Duration(v.Ftv_sec) + time.Duration(v.Ftv_nsec))
+ return 0
+}