Added missing parameter to gettimeofday

This commit is contained in:
Tohei Ichikawa
2025-06-08 12:47:50 -04:00
parent 77f4199af6
commit 876f1c02b7
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -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)
}
+8
View File
@@ -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
*/