[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Samba working




2013/12/11 Jo Even Skarstein <joska@online.no>
On Wed, 2013-12-11 at 13:06 +0100, Peter Persson wrote:


> Fselect() afaik takes a parameter which holds the highest file handle;
> perhaps it could be possible to just see if that parameter > 32, and
> then change the implementation for that case so that it checks more
> than one 32-bit integer.

IIRC the fourth parameter in Fselect isn't used at all. What about
passing a bitmap here, and use the status of a certain bit to specify if
you're waiting for handles > 31. E.g if bit 0 is set, the second and
third parameters are pointers to arrays of four longwords instead of
single longwords.

Ah, true. I expected it to work like Select(). I noticed that the Fselect() return type can't cater for more than 32 handles anyway. Nothing prevents a 2nd binding a'la VsetScreen() vs Setscreen() though, to allow us to get the proper bitmask response for a new version of the call.