1# Copyright (c) 2024 Tenstorrent AI ULC 2# 3# SPDX-License-Identifier: Apache-2.0 4 5menuconfig POSIX_FD_MGMT 6 bool "POSIX file descriptor management" 7 help 8 Select 'y' here and Zephyr will provide implementations for the POSIX_FD_MGMT Option Group. 9 This includes support for dup(), dup2(), fcntl(), fseeko(), ftello(), ftruncate(), 10 and lseek(). 11 12 For more information, please see 13 https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html 14 15if POSIX_FD_MGMT 16 17# These options are intended to be used for compatibility with external POSIX 18# implementations such as those in Newlib or Picolibc. 19 20config POSIX_FD_MGMT_ALIAS_FCNTL 21 bool 22 help 23 When selected via Kconfig, Zephyr will provide an alias for fcntl() as _fcntl(). 24 25config POSIX_FD_MGMT_ALIAS_FTRUNCATE 26 bool 27 help 28 When selected via Kconfig, Zephyr will provide an alias for ftruncate() as _ftruncate(). 29 30config POSIX_FD_MGMT_ALIAS_LSEEK 31 bool 32 help 33 When selected via Kconfig, Zephyr will provide an alias for lseek() as _lseek(). 34 35endif # POSIX_FD_MGMT 36