From 532f2ddd3493b979471199735554cf191e8be144 Mon Sep 17 00:00:00 2001 From: Lucas Chollet Date: Sun, 23 Aug 2026 23:57:31 +0200 Subject: [PATCH] LibC: Support the 'x' mode in the fopen family --- Userland/Libraries/LibC/stdio.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibC/stdio.cpp b/Userland/Libraries/LibC/stdio.cpp index 32c6e5851c8..e1fa0a71edc 100644 --- a/Userland/Libraries/LibC/stdio.cpp +++ b/Userland/Libraries/LibC/stdio.cpp @@ -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); }