[FFmpeg-devel] [RFC] libavformat/avio.h API cleanup

Michael Niedermayer michaelni
Sun Mar 6 19:47:45 CET 2011


On Sun, Mar 06, 2011 at 06:37:01PM +0100, Nicolas George wrote:
> Le sextidi 16 vent?se, an CCXIX, M?ns Rullg?rd a ?crit?:
> > Existence checks are almost always wrong as by the time you act on the
> > information, it may already be stale, leaving the door open for race
> > conditions which may have serious security implications.
> 
> I hope everyone here already knows that. But _almost_ always is not always.
> The way it is used in img2, for example, seems reasonable.
> 
> URL_FLAG_NOCLOBBER (mapping to O_EXCL for plain file) may be nice though.

why not call it URL_(FLAG_)EXCL ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110306/3fb3a5b0/attachment.pgp>



More information about the ffmpeg-devel mailing list