zephyr/lib/posix/options/Kconfig.fs
Yong Cong Sin 5978e5231e lib: posix: update option group of readdir_r()
`readdir_r()` belongs to the following option group

POSIX_FILE_SYSTEM_R: Thread-Safe File System

Create a new Kconfig `CONFIG_POSIX_FILE_SYSTEM_R` to compile
it.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-08-21 16:59:15 -04:00

30 lines
756 B
Forth

# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
menuconfig POSIX_FILE_SYSTEM
bool "POSIX file system API support"
default y if POSIX_API
select FILE_SYSTEM
select FDTABLE
help
This enables POSIX style file system related APIs.
if POSIX_FILE_SYSTEM
config POSIX_FILE_SYSTEM_ALIAS_FSTAT
bool
help
Select 'y' here and Zephyr will provide an alias for fstat() as _fstat().
config POSIX_FILE_SYSTEM_R
bool "Thread-Safe File System"
help
Select 'y' here and Zephyr will provide an implementation of the POSIX_FILE_SYSTEM_R
Option Group, consisting of readdir_r().
For more informnation, please see
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
endif # POSIX_FILE_SYSTEM