From 6bfc7483bc978cf24eb5681799e00371a3a8ca4b Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 19 Jun 2023 10:47:43 +0200 Subject: [PATCH] libc: Add a definition for FILENAME_MAX --- libc/include/stdio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/include/stdio.h b/libc/include/stdio.h index 7596a9d9..9be13eea 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -27,6 +27,9 @@ extern FILE* stderr; #define stderr stderr #define BUFSIZ 1024 +#define FILENAME_MAX \ + 1024 // As Luna does not impose a limit on this, this is the recommended size for character arrays holding a file + // name. #ifdef __cplusplus extern "C"