2024-05-23 04:35:57 +08:00
|
|
|
# Copyright (c) 2024 Tenstorrent AI ULC
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig POSIX_FD_MGMT
|
|
|
|
bool "POSIX file descriptor management [EXPERIMENTAL]"
|
|
|
|
select EXPERIMENTAL
|
|
|
|
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
|
2024-06-27 03:13:47 +08:00
|
|
|
When selected via Kconfig, Zephyr will provide an alias for fcntl() as _fcntl().
|
2024-05-23 04:35:57 +08:00
|
|
|
|
|
|
|
config POSIX_FD_MGMT_ALIAS_FTRUNCATE
|
|
|
|
bool
|
|
|
|
help
|
2024-06-27 03:13:47 +08:00
|
|
|
When selected via Kconfig, Zephyr will provide an alias for ftruncate() as _ftruncate().
|
2024-05-23 04:35:57 +08:00
|
|
|
|
|
|
|
config POSIX_FD_MGMT_ALIAS_LSEEK
|
|
|
|
bool
|
|
|
|
help
|
2024-06-27 03:13:47 +08:00
|
|
|
When selected via Kconfig, Zephyr will provide an alias for lseek() as _lseek().
|
2024-05-23 04:35:57 +08:00
|
|
|
|
|
|
|
endif # POSIX_FD_MGMT
|