[FFmpeg-devel] setmode(fd, flag)
Tue Dec 16 13:52:46 CET 2008
On Mon, Dec 15, 2008 at 3:28 PM, Marc Mason <mpeg.blue at free.fr> wrote:
> pipe_open() may call setmode()
> #ifdef O_BINARY
> setmode(fd, O_BINARY);
> Which standard does setmode() come from ?
> It's not C89 or C99.
> It doesn't seem to be POSIX.
> I don't think it's from BSD.
> 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 ) that _setmode is preferred.
More information about the ffmpeg-devel