logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

sync.c (375B)


  1. // Collection of Unix tools, comparable to coreutils
  2. // SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
  4. #define _XOPEN_SOURCE 700 // XSI but not mere POSIX
  5. #include <unistd.h> // sync()
  6. int
  7. main(void)
  8. {
  9. // Maybe consider hooking up to fsync(3p)
  10. sync();
  11. return 0;
  12. }