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:
Mauri de Souza Nunes 2019-09-11 19:37:55 -03:00 committed by Andreas Kling
parent c74e4d0c80
commit 6d7c928359

View file

@ -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