errno is undefined

I only took a birdseye view at the code so excuse me if I'm mistaken, but shouldn't `errno` be `err`?