Explorar el Código

Use 4096 as Linux page size for now

Jeremy Soller hace 6 años
padre
commit
51b093b598
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/platform/linux/mod.rs

+ 2 - 1
src/platform/linux/mod.rs

@@ -240,7 +240,8 @@ impl Pal for Sys {
     }
 
     fn getpagesize() -> c_int {
-        e(unsafe { syscall!(GETPAGESIZE) }) as c_int
+        //TODO
+        4096
     }
 
     fn getpgid(pid: pid_t) -> pid_t {