aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-01-31 08:37:43 +0000
committergingerBill <bill@gingerbill.org>2025-01-31 08:37:43 +0000
commit539a74c2a9d075172bcf199dc60b72e6a2bf0d2a (patch)
treebfc45fb7af9ba7146070eff77b46da7aac2a717f /core/sys/linux
parent5d758cd020ab1b2e8e83c1a829d176bb8cf48abc (diff)
Fix bindings for sys/linux and posix/unistd.odin
Diffstat (limited to 'core/sys/linux')
-rw-r--r--core/sys/linux/sys.odin4
1 files changed, 2 insertions, 2 deletions
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)
}
}