From 0c068ed4e3f58f4baae777df42ad88e1288c96c1 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Wed, 17 Mar 2021 22:31:55 +0800 Subject: [PATCH] limits.h: modify _POSIX_OPEN_MAX to 16 fix ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/26-1.c:46:8: error: size of array 'queue' is negative mqd_t queue[_POSIX_OPEN_MAX + _POSIX_MQ_OPEN_MAX + 1]; Change-Id: I1185ea9f84752aaa0150689b5801d01c3f52c598 Signed-off-by: Jiuzhu Dong --- include/limits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/limits.h b/include/limits.h index 889d8b774a..ec18dd7127 100644 --- a/include/limits.h +++ b/include/limits.h @@ -120,10 +120,10 @@ #define _POSIX_MAX_INPUT 255 #define _POSIX_NAME_MAX CONFIG_NAME_MAX #define _POSIX_NGROUPS_MAX 0 -#define _POSIX_OPEN_MAX INT_MAX +#define _POSIX_OPEN_MAX 16 #define _POSIX_PATH_MAX CONFIG_PATH_MAX #define _POSIX_PIPE_BUF 512 -#define _POSIX_STREAM_MAX INT_MAX +#define _POSIX_STREAM_MAX 16 #define _POSIX_TZNAME_MAX 3 #ifdef CONFIG_SMALL_MEMORY