posix_fadvise.c (182B)
- #define _POSIX_C_SOURCE 200809L
- #include <fcntl.h>
- int
- main(void)
- {
- int fd = 1;
- off_t offset = 0;
- off_t len = 0;
- return posix_fadvise(fd, offset, len, POSIX_FADV_SEQUENTIAL);
- }
git clone https://anongit.hacktivis.me/git/utils-std.git/
posix_fadvise.c (182B)
- #define _POSIX_C_SOURCE 200809L
- #include <fcntl.h>
- int
- main(void)
- {
- int fd = 1;
- off_t offset = 0;
- off_t len = 0;
- return posix_fadvise(fd, offset, len, POSIX_FADV_SEQUENTIAL);
- }