armstdc: add limits.h header

Add limits.h header that defines PATH_MAX as this is not defined
by the toolchain headers.

The value of 256 for PATH_MAX is based on how it is set in
lib/libc/minimal/include/limits.h.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2023-04-24 14:44:49 -05:00 committed by Carles Cufí
parent 64c0ac2acb
commit 48cd295a7f

View File

@ -0,0 +1,22 @@
/*
* Copyright (c) 2023 Intel
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_
#define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_
#include_next <limits.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PATH_MAX 256
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_LIMITS_H_ */