[Lazarus] debugging parts of rtl from within lazarus

Marc Santhoff M.Santhoff at web.de
Wed Mar 19 16:58:21 CET 2014


On Mo, 2014-03-17 at 23:18 +0000, Mark Morgan Lloyd wrote:
> Marc Santhoff wrote:
> > On Mo, 2014-03-17 at 17:22 +0000, Mark Morgan Lloyd wrote:

> > But some questions popping up:
> > In the patch report you write SerFlush() is non-destructive and the new
> > SerFlushInput/Output() are destructive.
> > 
> > What does this mean exactly?
> 
> I'm working from memory here. SerFlush() tried to do a sync(), which was 
> considered to be pointless so is now marked deprecated. If you really do 
> want to do this, then use SerSync().
> 
> SerDrain() waits until pending output has been sent i.e. is 
> non-destructive, SerFlushInput() and SerFlushOutput() both clear buffers 
> so are destructive.

OK, that matches my memory.

> Please note that these are basically very thin wrappers around the unix 
> (Linux/Solaris) API.

Understood, so the system man pages and maybe Stevens are my friends.

Many thanks!

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list