1# Copyright (c) 2018 Intel Corporation
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig POSIX_SEMAPHORES
6	bool "POSIX semaphore support"
7	help
8	  Enable this option for POSIX semaphore support.
9
10if POSIX_SEMAPHORES
11
12config POSIX_SEM_VALUE_MAX
13	int "Maximum semaphore value"
14	default $(INT16_MAX)
15	range 1 $(INT16_MAX)
16	help
17	  Maximum semaphore count in POSIX compliant Application.
18
19config POSIX_SEM_NSEMS_MAX
20	int "Maximum number of semaphores"
21	default 256
22	help
23	  Maximum number of semaphores in a POSIX application.
24
25	  Note: currently, in Zephyr, this only limits the number of named semaphores (i.e. those
26	  created via sem_open()).
27
28config POSIX_SEM_NAMELEN_MAX
29	int "Maximum semaphore name length"
30	default 16
31	range 2 $(UINT8_MAX)
32	help
33	  Maximum length of name for a named semaphore.
34	  The max value of 255 corresponds to {NAME_MAX}.
35
36endif # POSIX_SEMAPHORES
37