zephyr/lib/posix/options/Kconfig.fd_mgmt
Robert Lubos 982402a99d posix: Move POSIX configs out of experimental
Many out of the POSIX subsystem configs are enabled automatically
when merely CONFIG_POSIX_API is enabled, which is a prerequisite for
many networking samples. This causes a massive experimental warning
printout when building with warnings enabled.

Since the new POSIX Kconfig configuration options are already present
in Zephyr for 2 release cycles and seem settled, I suggest we move
them out of experimental phase.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-12-19 17:37:40 +01:00

36 lines
1.0 KiB
Plaintext

# Copyright (c) 2024 Tenstorrent AI ULC
#
# SPDX-License-Identifier: Apache-2.0
menuconfig POSIX_FD_MGMT
bool "POSIX file descriptor management"
help
Select 'y' here and Zephyr will provide implementations for the POSIX_FD_MGMT Option Group.
This includes support for dup(), dup2(), fcntl(), fseeko(), ftello(), ftruncate(),
and lseek().
For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
if POSIX_FD_MGMT
# These options are intended to be used for compatibility with external POSIX
# implementations such as those in Newlib or Picolibc.
config POSIX_FD_MGMT_ALIAS_FCNTL
bool
help
When selected via Kconfig, Zephyr will provide an alias for fcntl() as _fcntl().
config POSIX_FD_MGMT_ALIAS_FTRUNCATE
bool
help
When selected via Kconfig, Zephyr will provide an alias for ftruncate() as _ftruncate().
config POSIX_FD_MGMT_ALIAS_LSEEK
bool
help
When selected via Kconfig, Zephyr will provide an alias for lseek() as _lseek().
endif # POSIX_FD_MGMT