mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
changed signature of clock_getres
This commit is contained in:
@@ -2428,9 +2428,10 @@ clock_gettime :: proc "contextless" (clock: Clock_Id) -> (ts: Time_Spec, err: Er
|
|||||||
Finds the resolution of the specified clock.
|
Finds the resolution of the specified clock.
|
||||||
Available since Linux 2.6.
|
Available since Linux 2.6.
|
||||||
*/
|
*/
|
||||||
clock_getres :: proc "contextless" (clock: Clock_Id, res: ^Time_Spec) -> (Errno) {
|
clock_getres :: proc "contextless" (clock: Clock_Id) -> (res: Time_Spec, err: Errno) {
|
||||||
ret := syscall(SYS_clock_getres, clock, res)
|
ret := syscall(SYS_clock_getres, clock, &res)
|
||||||
return Errno(-ret)
|
err = Errno(-ret)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user