sync.c (354B)
- // Collection of Unix tools, comparable to coreutils
- // SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- // SPDX-License-Identifier: MPL-2.0
- #define _XOPEN_SOURCE 700 // XSI but not mere POSIX
- #include <unistd.h> // sync()
- int
- main(void)
- {
- // Maybe consider hooking up to fsync(3p)
- sync();
- return 0;
- }