]> granicus.if.org Git - strace/blob - tests/fsync.c
Replace "(unsigned long) -1L" with -1UL
[strace] / tests / fsync.c
1 #include "tests.h"
2 #include <asm/unistd.h>
3
4 #ifdef __NR_fsync
5
6 # include <stdio.h>
7 # include <unistd.h>
8
9 int
10 main(void)
11 {
12         const long int fd = (long int) 0xdeadbeefffffffffULL;
13
14         long rc = syscall(__NR_fsync, fd);
15         printf("fsync(%d) = %ld %s (%m)\n", (int) fd, rc, errno2name());
16
17         puts("+++ exited with 0 +++");
18         return 0;
19 }
20
21 #else
22
23 SKIP_MAIN_UNDEFINED("__NR_fsync")
24
25 #endif