netbsd needs to use syscall for getdents - getting wrong size