1# Copyright (c) 2024 Tenstorrent AI ULC
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menu "POSIX synchronized I/O"
6
7config POSIX_FSYNC
8	bool "Support for fsync()"
9	help
10	  Select 'y' here and Zephyr will provide an implementation of fsync().
11
12	  For more information, please see
13	  https://pubs.opengroup.org/onlinepubs/9699919799/functions/fsync.html
14
15
16config POSIX_SYNCHRONIZED_IO
17	bool "POSIX synchronized I/O"
18	select POSIX_FSYNC
19	help
20	  Select 'y' here and Zephyr will provide an implementation of fdatasync(), fsync(),
21	  and msync().
22
23	  For more information, please see
24	  https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html
25	  https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html
26
27if POSIX_FSYNC
28
29# These options are intended to be used for compatibility with external POSIX
30# implementations such as those in Newlib or Picolibc.
31
32config POSIX_FILE_SYSTEM_ALIAS_FSYNC
33	bool
34	help
35	  Select 'y' here and Zephyr will provide an alias for fsync() as _fsync().
36
37endif # POSIX_FSYNC
38
39endmenu
40