logo

utils-std

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

posix_fadvise.c (182B)


  1. #define _POSIX_C_SOURCE 200809L
  2. #include <fcntl.h>
  3. int
  4. main(void)
  5. {
  6. int fd = 1;
  7. off_t offset = 0;
  8. off_t len = 0;
  9. return posix_fadvise(fd, offset, len, POSIX_FADV_SEQUENTIAL);
  10. }