logo

utils-std

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

posix_fadvise.c (348B)


  1. // utils-std: Collection of commonly available Unix tools
  2. // Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. // SPDX-License-Identifier: 0BSD
  4. #define _POSIX_C_SOURCE 200809L
  5. #include <fcntl.h>
  6. int
  7. main(void)
  8. {
  9. int fd = 1;
  10. off_t offset = 0;
  11. off_t len = 0;
  12. return posix_fadvise(fd, offset, len, POSIX_FADV_SEQUENTIAL);
  13. }