Merge branch 'odin-lang:master' into master

This commit is contained in:
marcs feh
2024-02-11 23:55:39 +00:00
committed by GitHub
77 changed files with 4882 additions and 3194 deletions
+1
View File
@@ -1,4 +1,5 @@
//+build linux
//+no-instrumentation
package linux
import "base:intrinsics"
+6 -1
View File
@@ -1,3 +1,4 @@
//+no-instrumentation
package linux
import "base:intrinsics"
@@ -2394,7 +2395,11 @@ timer_delete :: proc "contextless" (timer: Timer) -> (Errno) {
// TODO(flysand): clock_settime
// TODO(flysand): clock_gettime
clock_gettime :: proc "contextless" (clock: Clock_Id) -> (ts: Time_Spec, err: Errno) {
ret := syscall(SYS_clock_gettime, clock, &ts)
err = Errno(-ret)
return
}
// TODO(flysand): clock_getres