Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / mips32 / fadvise64.c
blobc74039558e3a7684749d436311831ed96fb3cfae
1 #include <errno.h>
2 #include <fcntl.h>
3 #include <stdio.h>
5 #define BAD_FD 42
7 int main() {
8 int x;
10 (void)posix_fadvise(x, 1, 2, POSIX_FADV_NORMAL);
11 (void)posix_fadvise(BAD_FD, x, 2, POSIX_FADV_NORMAL);
12 (void)posix_fadvise(BAD_FD, 1, x, POSIX_FADV_NORMAL);
13 (void)posix_fadvise(BAD_FD, 1, 2, x);
15 x = posix_fadvise(BAD_FD, 1, 2, POSIX_FADV_NORMAL);
17 if (x != EBADF)
18 fprintf(stderr, "Unexpected return value: %d\n", x);
20 return 0;