mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Removed obsolete tz param from 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, tz: ^Time_Zone) -> (Errno) {
|
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
||||||
ret := syscall(SYS_gettimeofday, tv, tz)
|
ret := syscall(SYS_gettimeofday, tv, nil)
|
||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,14 +72,6 @@ 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