[PATCH v2] serial: Use -EAGAIN in getc and putc