[FFmpeg-devel] setmode(fd, flag)

Dave Yeo daveryeo
Tue Dec 16 17:10:37 CET 2008


On 12/16/08 04:52 am, Ramiro Polla wrote:
[...]
>> Is it from Win32 ?
>
> Yes. You can find information about it in MSDN.
>
>> I suppose O_BINARY remains undefined on a Linux platform ?
>
> Yes. But it is defined in BeOS (IIRC) and setmode does something
> completely different. So the code, as is, is not good.
>
> It seems (from msdn [0]) that _setmode is preferred.
>
> Patches welcome.
>
> Ramiro Polla
> [0] http://msdn.microsoft.com/en-us/library/tw4k6df8(VS.80).aspx

_setmode() will break OS/2 and djgpp as they both have O_BINARY defined 
and only setmode().
Dave




More information about the ffmpeg-devel mailing list