Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / solaris / scalar_utimesys.c
blob3591d825cb21156de218c7b87ae38d4d40737095
1 /* Test for utimesys() syscall which is available on illumos
2 and older Solaris.
3 */
5 #include "scalar.h"
7 __attribute__((noinline))
8 static void sys_utimesys(void)
10 GO(SYS_utimesys, "(FUTIMENS) 3s 1m");
11 SY(SYS_utimesys, x0 + 0, x0 - 1, x0 + 1); FAIL;
14 __attribute__((noinline))
15 static void sys_utimesys2(void)
17 GO(SYS_utimesys, "(FUTIMENS) 3s 0m");
18 SY(SYS_utimesys, x0 + 0, x0 - 1, x0 + NULL); FAIL;
21 __attribute__((noinline))
22 static void sys_utimesys3(void)
24 GO(SYS_utimesys, "(UTIMENSAT) 5s 2m");
25 SY(SYS_utimesys, x0 + 1, x0 - 1, x0 + 1, x0 + 1, x0); FAIL;
28 __attribute__((noinline))
29 static void sys_utimesys4(void)
31 GO(SYS_utimesys, "(UTIMENSAT) 5s 0m");
32 SY(SYS_utimesys, x0 + 1, x0 - 1, x0 + NULL, x0 + NULL, x0); FAIL;
35 int main(void)
37 /* Uninitialised, but we know px[0] is 0x0. */
38 long *px = malloc(sizeof(long));
39 x0 = px[0];
41 /* SYS_utimesys 110 */
42 sys_utimesys();
43 sys_utimesys2();
44 sys_utimesys3();
45 sys_utimesys4();
47 return 0;