1 /* 2 * Copyright (c) 2024 Tenstorrent AI ULC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/posix/unistd.h> 8 9 /* prototypes for external, not-yet-public, functions in fdtable.c */ 10 int zvfs_fsync(int fd); 11 fsync(int fd)12int fsync(int fd) 13 { 14 return zvfs_fsync(fd); 15 } 16 #ifdef CONFIG_POSIX_FILE_SYSTEM_ALIAS_FSYNC 17 FUNC_ALIAS(fsync, _fsync, int); 18 #endif 19 20 #ifdef CONFIG_POSIX_SYNCHRONIZED_IO fdatasync(int fd)21int fdatasync(int fd) 22 { 23 return fsync(fd); 24 } 25 #endif /* CONFIG_POSIX_SYNCHRONIZED_IO */ 26