mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibC: Support the 'x' mode in the fopen family
This commit is contained in:
1 parent
78bf9db1a3
commit
532f2ddd34
1 file changed
+3
@@ -1059,6 +1059,9 @@ static int parse_mode(char const* mode)
|
||||
case 't':
|
||||
// Ok...
|
||||
break;
|
||||
case 'x':
|
||||
flags |= O_EXCL;
|
||||
break;
|
||||
default:
|
||||
dbgln("Potentially unsupported fopen mode _{}_ (because of '{}')", mode, *ptr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user