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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-03-17 22:31:55 +08:00 committed by David Sidrane
parent 6657d151ca
commit 0c068ed4e3

View file

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