mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Added missing parameter to gettimeofday
This commit is contained in:
@@ -1412,8 +1412,8 @@ umask :: proc "contextless" (mask: Mode) -> Mode {
|
|||||||
Get current time.
|
Get current time.
|
||||||
Available since Linux 1.0.
|
Available since Linux 1.0.
|
||||||
*/
|
*/
|
||||||
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
gettimeofday :: proc "contextless" (tv: ^Time_Val, tz: ^Time_Zone) -> (Errno) {
|
||||||
ret := syscall(SYS_gettimeofday, tv)
|
ret := syscall(SYS_gettimeofday, tv, tz)
|
||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,14 @@ Time_Val :: struct {
|
|||||||
microseconds: int,
|
microseconds: int,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Represents a time zone.
|
||||||
|
*/
|
||||||
|
Time_Zone :: struct {
|
||||||
|
minutes_west: int,
|
||||||
|
dst_time: int,
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Access and modification times for files
|
Access and modification times for files
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user