pcm: Return unsigned int if error occurs by `read` or `write` system call