Explorar o código

changed signature of clock_getres

Yeongju Kang hai 1 ano
pai
achega
bbe4c32e32
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      core/sys/linux/sys.odin

+ 4 - 3
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
 }
 
 /*