changed errno to syscall.Errno