Skip to content

Commit

Permalink
changed signature of clock_getres
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeongju Kang committed Aug 20, 2024
1 parent f969913 commit bbe4c32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/sys/linux/sys.odin
Original file line number Diff line number Diff line change
Expand Up @@ -2428,9 +2428,10 @@ clock_gettime :: proc "contextless" (clock: Clock_Id) -> (ts: Time_Spec, err: Er
Finds the resolution of the specified clock.
Available since Linux 2.6.
*/
clock_getres :: proc "contextless" (clock: Clock_Id, res: ^Time_Spec) -> (Errno) {
ret := syscall(SYS_clock_getres, clock, res)
return Errno(-ret)
clock_getres :: proc "contextless" (clock: Clock_Id) -> (res: Time_Spec, err: Errno) {
ret := syscall(SYS_clock_getres, clock, &res)
err = Errno(-ret)
return
}

/*
Expand Down

0 comments on commit bbe4c32

Please sign in to comment.