Jef Driesen
0025221268
Fixed another regression in the timeout code.
...
The assignment needs extra parentheses, because it has lower precedence
than the relational operator.
2008-02-28 14:20:51 +00:00
Jef Driesen
032f39cdd6
Fixed a regression in the timeout code.
...
The timestamp was not updated when calculating the remaining timeout.
2008-02-28 09:56:18 +00:00
Jef Driesen
dea1ae1518
Added a function to assert or clear a break condition.
2008-02-24 19:52:12 +00:00
Jef Driesen
25d8fc0969
Some more code simplifications.
2008-02-22 11:12:15 +00:00
Jef Driesen
1b44b886c0
Cleanup and simplification of the posix timeout code.
2008-02-22 10:49:45 +00:00
Jef Driesen
4d30b19251
Use the select() function instead of poll().
...
The poll() function does not support (serial) devices on Mac OS X.
2008-02-15 15:57:45 +00:00
Jef Driesen
0b5c63995f
Added support for the Mac OS X operating system.
2008-02-08 09:02:36 +00:00
Jef Driesen
a004a94c2a
Added utility functions to duplicate all output to a logfile.
2008-01-02 12:11:31 +00:00
Jef Driesen
b9a43e3157
Do not flush the input and output buffers when configuring the device.
2007-11-29 09:08:25 +00:00
Jef Driesen
40835b8d80
Added a function to configure the size of the input and output buffers.
2007-11-27 15:09:38 +00:00
Jef Driesen
c5fc289cb2
Added missing break statements in the serial_flush() functions.
2007-10-29 10:54:40 +00:00
Jef Driesen
425efd1c0d
Added a shorter implementation for the serial_set_status function.
2007-10-29 09:56:30 +00:00
Jef Driesen
0154674573
Attempt to read/write before waiting, instead of the other way around.
2007-10-29 09:52:28 +00:00
Jef Driesen
a3ae610b2e
Replace termios VMIN=0 and VTIME=0 with O_NONBLOCK.
...
Enable O_NONBLOCK to be able to detect the difference between a timeout
and a modem disconnect (EOF). With this change, it's also possible to
implement write timeouts.
2007-10-29 09:37:26 +00:00
Jef Driesen
3f33f82bc2
Initial import.
2007-10-29 09:22:19 +00:00