Skip to content

Commit

Permalink
Fix bindings for sys/linux and posix/unistd.odin
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Jan 31, 2025
1 parent 5d758cd commit 539a74c
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 177 deletions.
4 changes: 2 additions & 2 deletions core/sys/linux/sys.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
Loading

0 comments on commit 539a74c

Please sign in to comment.