syscall.Getpagesize(): add test, implement for Linux and Windows

This commit is contained in:
Dan Kegel
2022-06-10 17:20:54 -07:00
committed by Ayke
parent caf405b01d
commit 8754f64f3b
10 changed files with 77 additions and 8 deletions
+5
View File
@@ -296,6 +296,11 @@ func Pipe2(p []int, flags int) (err error) {
return ENOSYS // TODO
}
func Getpagesize() int {
// per upstream
return 65536
}
// int stat(const char *path, struct stat * buf);
//export stat
func libc_stat(pathname *byte, ptr unsafe.Pointer) int32