[FFmpeg-devel] setmode(fd, flag)

Marc Mason mpeg.blue
Mon Dec 15 18:28:55 CET 2008


Hello,

pipe_open() may call setmode()

http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/file_8c-source.html#l00108

#ifdef O_BINARY
     setmode(fd, O_BINARY);
#endif

Which standard does setmode() come from ?

It's not C89 or C99.

It doesn't seem to be POSIX.
http://www.opengroup.org/onlinepubs/000095399/idx/is.html

I don't think it's from BSD.
http://www.freebsd.org/cgi/man.cgi?query=setmode

Is it from Win32 ?

I suppose O_BINARY remains undefined on a Linux platform ?

-- 
Regards.




More information about the ffmpeg-devel mailing list