How can I implement timeout for read() when reading from a serial port (C/C++) How can I implement timeout for read() when reading from a serial port (C/C++) unix unix