[fpc-devel] Tprocess using pipes, handle = 0

Martin Frb lazarus at mfriebe.de
Tue Mar 17 23:59:24 CET 2015

On 17/03/2015 22:57, Marco van de Voort wrote:
> In our previous episode, Martin Frb said:
>> Are there any values that are known to be ont a handle?
>> On windows codetools find InvalidHandleValue = -1
>> But on Linux I found nothing like this.
>> Given that fpselect is documented to have a bit-array of 256 bits, I
>> would guess only 0 to 255 are valid? Though of course that may change...
> Where? If I look up in the help I only find
> http://www.freepascal.org/docs-html/rtl/baseunix/tfdset.html
> 1024 seems to be a standard value for maxfd.

I googled fpselect, and got here:


2nd paragraph in description

> readfds, writefds and exceptfds are pointers to arrays of 256 bits.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150317/207a907d/attachment.html>

More information about the fpc-devel mailing list