diff options
| author | Yeongju Kang <yeongjukang@outlook.com> | 2024-08-21 08:25:14 +0900 |
|---|---|---|
| committer | Yeongju Kang <yeongjukang@outlook.com> | 2024-08-21 08:25:14 +0900 |
| commit | bbe4c32e32a2ca3f34ff0efbf7791815f84e0655 (patch) | |
| tree | 4157a75d3356911bb35a5c679ab673869193c09b /core | |
| parent | f96991364a8e0fe29c8c1e6c1915ed39776b5fea (diff) | |
changed signature of clock_getres
Diffstat (limited to 'core')
| -rw-r--r-- | core/sys/linux/sys.odin | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 8aa2f09cc..15f5c9d4c 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -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 } /* |