logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

syncfs.c (371B)


  1. // utils-std: Collection of commonly available Unix tools
  2. // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. // SPDX-License-Identifier: MPL-2.0
  4. // Because that's what our utilities will use :)
  5. #define _POSIX_C_SOURCE 200809L
  6. #define _GNU_SOURCE // for syncfs
  7. #include <unistd.h> // syncfs
  8. int
  9. test(int fd)
  10. {
  11. return syncfs(fd);
  12. }