sync.c (375B)
- // Collection of Unix tools, comparable to coreutils
- // SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
- #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;
- }