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