From 78bf9db1a3afeba16717e2f72f2d19178889c087 Mon Sep 17 00:00:00 2001 From: Lucas Chollet Date: Mon, 24 Aug 2026 10:43:03 +0200 Subject: [PATCH] LibC: Define TMP_MAX This is required by POSIX and is supposed to be equal to the number of unique filenames that tmpnam can return. Given that we only have a stub for that function, TMP_MAX is only here to please libcxx tests. --- Userland/Libraries/LibC/stdio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibC/stdio.h b/Userland/Libraries/LibC/stdio.h index 0a07b9b668f..ad6a5431dbb 100644 --- a/Userland/Libraries/LibC/stdio.h +++ b/Userland/Libraries/LibC/stdio.h @@ -21,6 +21,7 @@ #define FILENAME_MAX 1024 #define FOPEN_MAX 1024 +#define TMP_MAX 1000 __BEGIN_DECLS #ifndef EOF