[fpc-pascal] (Unix) serial port handling

Henry Vermaak henry.vermaak at gmail.com
Wed Mar 9 11:39:36 CET 2011


On 08/03/11 10:30, Mark Morgan Lloyd wrote:
> Can anybody say whether there is a good reason that serial.pp lacks a
> function to read the CD signal?
>
> Is SerFlush, which calls fpfsync, intended to discard input data, output
> data or both?

fsync just makes sure all the in-kernel caches are written to the 
device.  Flushing input data is just a matter of reading it.

Henry



More information about the fpc-pascal mailing list