public int cfsetispeed(Termios termios, int speed) { termios.c_ispeed = speed; return 0; } // Error code for Interrupted = EINTR