From 539a74c2a9d075172bcf199dc60b72e6a2bf0d2a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 31 Jan 2025 08:37:43 +0000 Subject: Fix bindings for sys/linux and posix/unistd.odin --- core/sys/linux/sys.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/sys/linux') diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index fee385fe8..532c1ff5f 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2010,10 +2010,10 @@ statfs :: proc "contextless" (path: cstring, statfs: ^Stat_FS) -> (Errno) { */ fstatfs :: proc "contextless" (fd: Fd, statfs: ^Stat_FS) -> (Errno) { when size_of(int) == 8 { - ret := syscall(SYS_statfs, fd, statfs) + ret := syscall(SYS_fstatfs, fd, statfs) return Errno(-ret) } else { - ret := syscall(SYS_statfs64, fd, size_of(Stat_FS), statfs) + ret := syscall(SYS_fstatfs64, fd, size_of(Stat_FS), statfs) return Errno(-ret) } } -- cgit v1.2.3