<p>Am 26.03.2015 08:26 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
><br>
><br>
><br>
> On Wed, 25 Mar 2015, Sven Barth wrote:<br>
><br>
>> On 25.03.2015 19:57, fredvs wrote:<br>
>>><br>
>>> PS: Why everything must be so compilcated with Windows ?<br>
>><br>
>><br>
>> It's not if developers wouldn't decide to make their libraries so *nix centric...<br>
><br>
><br>
> I don't understand this remark ?<br>
> What is so *nix centric about a file descriptor ?</p>
<p>Per se nothing. But if that can only handle StdIO pseudo handles in Windows then I'd definitely call that *nix-centric or at least not fully useable on Windows. I personally would have declared a platform specific handle type like we have in our RTL and then would have used the OS specific routines to handle them. Also I assume that on Win64 that fd type used by mpg123 is still int while a Handle there is a 64-bit value (I didn't check the code so this is only an assumption) making it even more incompatible with the Windows routines...</p>
<p>Regards,<br>
Sven</p>