os, syscall: add Statfs/Fstatfs stubs and Getpagesize for non-hosted targets

This commit is contained in:
v1rtl
2026-08-15 11:50:51 +03:00
committed by Damian Gryski
parent 80506a9cea
commit d74f70bdd0
3 changed files with 45 additions and 5 deletions
+6
View File
@@ -0,0 +1,6 @@
package os
import "syscall"
// Getpagesize returns the underlying system's memory page size.
func Getpagesize() int { return syscall.Getpagesize() }
-5
View File
@@ -6,11 +6,6 @@
package os
import "syscall"
// Getpagesize returns the underlying system's memory page size.
func Getpagesize() int { return syscall.Getpagesize() }
func (fs *fileStat) Name() string { return fs.name }
func (fs *fileStat) IsDir() bool { return fs.Mode().IsDir() }