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
+8
View File
@@ -267,6 +267,14 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (err error) {
return
}
func Getpagesize() int {
return int(libc_getpagesize())
}
// int pipe(int32 *fds);
//export pipe
func libc_pipe(fds *int32) int32
// int getpagesize();
//export getpagesize
func libc_getpagesize() int32