diff options
| author | Tohei Ichikawa <ichikawt@umich.edu> | 2025-06-08 16:07:11 -0400 |
|---|---|---|
| committer | Tohei Ichikawa <ichikawt@umich.edu> | 2025-06-08 16:07:11 -0400 |
| commit | 7662e7d843f4248103ca818c43ff59e2683e30d5 (patch) | |
| tree | 140e0167ddacbe76e8982e5298652288b67015e4 /core/sys/linux | |
| parent | 876f1c02b7ab0522179c5ef154a879973832af70 (diff) | |
Removed obsolete `tz` param from `gettimeofday`
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/sys.odin | 4 | ||||
| -rw-r--r-- | core/sys/linux/types.odin | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index e9d0f4d76..0e4cebce2 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -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) } diff --git a/core/sys/linux/types.odin b/core/sys/linux/types.odin index 77a0b8ef4..08e0026d3 100644 --- a/core/sys/linux/types.odin +++ b/core/sys/linux/types.odin @@ -73,14 +73,6 @@ Time_Val :: struct { } /* - Represents a time zone. -*/ -Time_Zone :: struct { - minutes_west: int, - dst_time: int, -} - -/* Access and modification times for files */ UTim_Buf :: struct { |