diff options
| author | Clément Léger <cleger@rivosinc.com> | 2024-08-02 16:54:17 +0200 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-08-05 08:06:08 +1000 |
| commit | 4ec5ebea078ed3a16d6c7e612ff9c2e04ea73931 (patch) | |
| tree | bb2880d8145b917eaaf7effc2df8ab2379feadc1 /include/qemu | |
| parent | 5b0c2742c839376b7e03c4654914aaec6a8a7b09 (diff) | |
| download | focaccia-qemu-4ec5ebea078ed3a16d6c7e612ff9c2e04ea73931.tar.gz focaccia-qemu-4ec5ebea078ed3a16d6c7e612ff9c2e04ea73931.zip | |
qemu/osdep: Move close_all_open_fds() to oslib-posix
Move close_all_open_fds() in oslib-posix, rename it qemu_close_all_open_fds() and export it. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240802145423.3232974-2-cleger@rivosinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu')
| -rw-r--r-- | include/qemu/osdep.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 720ed21a7e..de77c5c254 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -758,6 +758,13 @@ static inline void qemu_reset_optind(void) int qemu_fdatasync(int fd); /** + * qemu_close_all_open_fd: + * + * Close all open file descriptors + */ +void qemu_close_all_open_fd(void); + +/** * Sync changes made to the memory mapped file back to the backing * storage. For POSIX compliant systems this will fallback * to regular msync call. Otherwise it will trigger whole file sync |