1 /* Scalar test for new shmsys syscall subcodes available on Solaris 11. */
6 #include <sys/shm_impl.h>
8 __attribute__((noinline
))
9 static void sys_shmsys(void)
11 GO(SYS_shmsys
, "(SHMCTL,IPC_XSTAT64) 4s 1m");
12 SY(SYS_shmsys
, x0
+ SHMCTL
, x0
, x0
+ IPC_XSTAT64
, x0
+ 1); FAIL
;
15 __attribute__((noinline
))
16 static void sys_shmsys2(void)
18 GO(SYS_shmsys
, "(SHMADV,SHM_ADV_GET) 4s 1m");
19 SY(SYS_shmsys
, x0
+ SHMADV
, x0
, x0
+ SHM_ADV_GET
, x0
+ 1); FAIL
;
22 __attribute__((noinline
))
23 static void sys_shmsys3(void)
25 GO(SYS_shmsys
, "(SHMADV,SHM_ADV_SET) 4s 1m");
26 SY(SYS_shmsys
, x0
+ SHMADV
, x0
, x0
+ SHM_ADV_SET
, x0
+ 1); FAIL
;
29 __attribute__((noinline
))
30 static void sys_shmsys4(void)
32 GO(SYS_shmsys
, "(SHMGET_OSM) 5s 0m");
33 SY(SYS_shmsys
, x0
+ SHMGET_OSM
, x0
, x0
, x0
, x0
); FAIL
;
38 /* Uninitialised, but we know px[0] is 0x0. */
39 long *px
= malloc(sizeof(long));