1 /* Test for syscalls that are available on illumos but are removed on
2 Solaris 11. This test is compiled only on illumos. */
4 #include "../solaris/scalar.h"
8 /* Helper functions. These are necessary if we've got two tests for a single
9 syscall. In that case, Memcheck can sometimes merge error messages. Doing
10 each test in its own function prevents that. */
11 __attribute__((noinline
))
12 static void sys_open64(void)
14 GO(SYS_open64
, "(2-args) 2s 1m");
15 SY(SYS_open64
, x0
, x0
); FAIL
;
18 __attribute__((noinline
))
19 static void sys_open642(void)
21 GO(SYS_open64
, "(3-args) 3s 1m");
22 SY(SYS_open64
, x0
, x0
| O_CREAT
, x0
); FAIL
;
27 /* Uninitialised, but we know px[0] is 0x0. */
28 long *px
= malloc(sizeof(long));
32 GO(SYS_stat64
, "2s 2m");
33 SY(SYS_stat64
, x0
, x0
); FAIL
;
36 GO(SYS_lstat64
, "2s 2m");
37 SY(SYS_lstat64
, x0
, x0
); FAIL
;
40 GO(SYS_fstat64
, "2s 1m");
41 SY(SYS_fstat64
, x0
, x0
); FAIL
;