libc: Add a definition for FILENAME_MAX

This commit is contained in:
apio 2023-06-19 10:47:43 +02:00
parent acfad51ac0
commit 6bfc7483bc
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -27,6 +27,9 @@ extern FILE* stderr;
#define stderr stderr #define stderr stderr
#define BUFSIZ 1024 #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 #ifdef __cplusplus
extern "C" extern "C"