[fpc-devel] TProcess.NumBytesAvailable

2007-01-31 Thread Vincent Snijders
Hi, TAsyncProcess from the LCL has a property NumBytesAvailable. Attached patch adds it to TProcess in the FCL. NumBytesAvailable checks how many bytes are available in TProcess.Output, so you can decide not to read from it if there are no bytes available. Maybe you want a different name

Re: [fpc-devel] TProcess.NumBytesAvailable

2007-01-31 Thread Jonas Maebe
On 31 jan 2007, at 12:49, Vincent Snijders wrote: +{$ifdef BSD} +const + FIONREAD = $4004667F; +{$endif} + The FIONREAD constant is available in the termio units of both Darwin and FreeBSD as of 2.0.4 (not for Open/NetBSD, but that's probably the least of the things which need to be

Re: [fpc-devel] TProcess.NumBytesAvailable

2007-01-31 Thread Vincent Snijders
Marc Weustink schreef: Vincent Snijders wrote: Hi, TAsyncProcess from the LCL has a property NumBytesAvailable. Attached patch adds it to TProcess in the FCL. NumBytesAvailable checks how many bytes are available in TProcess.Output, so you can decide not to read from it if there are no

Re: [fpc-devel] TProcess.NumBytesAvailable

2007-01-31 Thread Vincent Snijders
Vincent Snijders schreef: Marc Weustink schreef: Vincent Snijders wrote: Hi, TAsyncProcess from the LCL has a property NumBytesAvailable. Attached patch adds it to TProcess in the FCL. NumBytesAvailable checks how many bytes are available in TProcess.Output, so you can decide not to read

Re: [fpc-devel] TProcess.NumBytesAvailable

2007-01-31 Thread Michael Van Canneyt
On Wed, 31 Jan 2007, Vincent Snijders wrote: Vincent Snijders schreef: Marc Weustink schreef: Vincent Snijders wrote: Hi, TAsyncProcess from the LCL has a property NumBytesAvailable. Attached patch adds it to TProcess in the FCL. NumBytesAvailable checks how many