mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
LibC: Add MAXPATHLEN to limits.h
MAXPATHLEN defines the longest permissable path length after expanding symbolic links. It is used to allocate a temporary buffer from the buffer pool in which to do the name expansion, hence should be a power of two. On UNIX MAXPATHLEN has the same size as PATH_MAX.
This commit is contained in:
parent
c74e4d0c80
commit
6d7c928359
Notes:
sideshowbarker
2024-07-19 12:08:46 +09:00
Author: https://github.com/mauri870 🔰 Commit: https://github.com/SerenityOS/serenity/commit/6d7c9283596 Pull-request: https://github.com/SerenityOS/serenity/pull/548
@ -5,6 +5,9 @@
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
#define PATH_MAX 4096
|
||||
#if !defined MAXPATHLEN && defined PATH_MAX
|
||||
# define MAXPATHLEN PATH_MAX
|
||||
#endif
|
||||
|
||||
#define INT_MAX INT32_MAX
|
||||
#define INT_MIN INT32_MIN
|
||||
|
Loading…
Reference in New Issue
Block a user