From a3da796d5410efd22a991bdd82fec947a0a11471 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Tue, 11 Jun 2024 03:42:13 -0400 Subject: [PATCH] Fix `file_size` on FreeBSD It was using the generic UNIX `fstat` implemented in Odin, which is more than what is needed here. This also avoids the issue of needing a proper `absolute_path_from_handle` implementation for it to work without error. --- core/os/os_freebsd.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os_freebsd.odin b/core/os/os_freebsd.odin index 1b32128d6..45f3ec23c 100644 --- a/core/os/os_freebsd.odin +++ b/core/os/os_freebsd.odin @@ -365,7 +365,7 @@ seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Errno) { } file_size :: proc(fd: Handle) -> (i64, Errno) { - s, err := fstat(fd) + s, err := _fstat(fd) if err != ERROR_NONE { return -1, err }