Skip to content
Commit 0f1d30aa authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

lib: posix: Do not redefine PATH_MAX in unistd.h



This constant should be defined in limits.h.  Define it in limits.h in
the minimal libc, and use the definition found in newlib's includes.
Values in newlib includes range from 1024 to 4096.

The rationale is that all code should use the same value; having
buffers specified with different sizes will lead to interoperability
and out of bounds array writes.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 5e87c08a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment