7 int main(int argc, char *argv[])
13 fprintf(stderr, "usage: %s file\n", argv[0]);
17 fd = open(argv[1], O_RDWR, 0);
20 "open failed on %s, error: %s\n",
21 argv[1], strerror(errno));
25 rc = posix_fadvise(fd, 0, 1024 * 1024, POSIX_FADV_DONTNEED);
28 "fadvise FADV_DONTNEED failed on %s, error: %s\n",
29 argv[1], strerror(errno));