[vlc-commits] vlc_fopen(): implement C11 "x" open flag
Rémi Denis-Courmont
git at videolan.org
Wed Jan 4 20:21:31 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 4 21:20:10 2012 +0200| [b9761b0e2fec898dfe6787e1e584cd8a7a86cf91] | committer: Rémi Denis-Courmont
vlc_fopen(): implement C11 "x" open flag
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9761b0e2fec898dfe6787e1e584cd8a7a86cf91
---
src/text/filesystem.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/text/filesystem.c b/src/text/filesystem.c
index 9c9add9..f3eb1d7 100644
--- a/src/text/filesystem.c
+++ b/src/text/filesystem.c
@@ -70,6 +70,10 @@ FILE *vlc_fopen (const char *filename, const char *mode)
oflags |= O_CREAT | O_TRUNC;
break;
+ case 'x':
+ oflags |= O_EXCL;
+ break;
+
case '+':
rwflags = O_RDWR;
break;
More information about the vlc-commits
mailing list