aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
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)
}
}