Commit b9761b0e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_fopen(): implement C11 "x" open flag

parent 46f74073
...@@ -70,6 +70,10 @@ FILE *vlc_fopen (const char *filename, const char *mode) ...@@ -70,6 +70,10 @@ FILE *vlc_fopen (const char *filename, const char *mode)
oflags |= O_CREAT | O_TRUNC; oflags |= O_CREAT | O_TRUNC;
break; break;
case 'x':
oflags |= O_EXCL;
break;
case '+': case '+':
rwflags = O_RDWR; rwflags = O_RDWR;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment