mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 12:44:59 -07: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.
|
||||
Available since Linux 1.0.
|
||||
*/
|
||||
gettimeofday :: proc "contextless" (tv: ^Time_Val, tz: ^Time_Zone) -> (Errno) {
|
||||
ret := syscall(SYS_gettimeofday, tv, tz)
|
||||
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
||||
ret := syscall(SYS_gettimeofday, tv, nil)
|
||||
return Errno(-ret)
|
||||
}
|
||||
|
||||
|
||||
@@ -72,14 +72,6 @@ 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