[FFmpeg-devel] setmode(fd, flag)

Måns Rullgård mans
Tue Dec 16 18:48:12 CET 2008

Fran?ois Revol wrote:
>> Yes. But it is defined in BeOS (IIRC) and setmode does something
>> completely different. So the code, as is, is not good.
> BSD has its own setmode(), see
> http://www.manpagez.com/man/3/setmode/
> It's been discussed already several times here.
>> It seems (from msdn [0]) that _setmode is preferred.
> Then check for it in configure...
> but make sure it doesn't colide with a weak symbol fallback
> elsewhere...

Since a variety of setmode() functions seem to exist on different
systems, I suggest manually enabling its use in the OS-specific part
of configure on the relevant systems.

We can easily check whether a function exists but not what it does.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list