mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
syscall.Getpagesize(): add test, implement for Linux and Windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user