posix: deprecate SEM_VALUE_MAX and SEM_NAMELEN_MAX
This change deprecates CONFIG_SEM_VALUE_MAX in favour of CONFIG_POSIX_SEM_VALUE_MAX which maps directly to _POSIX_SEM_VALUE_MAX. Additionally, we add the Kconfig option CONFIG_POSIX_SEMAPHORES which maps directly to the POSIX Option _POSIX_SEMAPHORES. For consistence, deprecate CONFIG_SEM_NAMELEN_MAX in favour of CONFIG_POSIX_SEM_NAMELEN_MAX. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
parent
9f6590c7b7
commit
842a7b7ba1
10 changed files with 70 additions and 33 deletions
|
@ -2,21 +2,36 @@
|
|||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
menu "sem_t support"
|
||||
menuconfig POSIX_SEMAPHORES
|
||||
bool "POSIX semaphore support"
|
||||
default y if POSIX_API
|
||||
help
|
||||
Enable this option for POSIX semaphore support.
|
||||
|
||||
config SEM_VALUE_MAX
|
||||
int "Maximum semaphore limit"
|
||||
if POSIX_SEMAPHORES
|
||||
|
||||
config POSIX_SEM_VALUE_MAX
|
||||
int "Maximum semaphore value"
|
||||
default 32767
|
||||
range 1 32767
|
||||
help
|
||||
Maximum semaphore count in POSIX compliant Application.
|
||||
|
||||
config SEM_NAMELEN_MAX
|
||||
int "Maximum name length"
|
||||
config POSIX_SEM_NSEMS_MAX
|
||||
int "Maximum number of semaphores"
|
||||
default 256
|
||||
help
|
||||
Maximum number of semaphores in a POSIX application.
|
||||
|
||||
Note: currently, in Zephyr, this only limits the number of named semaphores (i.e. those
|
||||
created via sem_open()).
|
||||
|
||||
config POSIX_SEM_NAMELEN_MAX
|
||||
int "Maximum semaphore name length"
|
||||
default 16
|
||||
range 2 255
|
||||
help
|
||||
Maximum length of name for a named semaphore.
|
||||
The max value of 255 corresponds to {NAME_MAX}.
|
||||
|
||||
endmenu # "sem_t support"
|
||||
endif # POSIX_SEMAPHORES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue