1 /* Test for utimesys() syscall which is available on illumos
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
;
37 /* Uninitialised, but we know px[0] is 0x0. */
38 long *px
= malloc(sizeof(long));
41 /* SYS_utimesys 110 */