These memory functions seem mostly OS independant, so I'm not sure if they belong in `os/`. If it's deemed necessary we can move them later.