1 /* Test for lwp_sigqueue syscall which accepts pid along the thread id.
2    Available since Solaris 12.
3  */
4 
5 #include "scalar.h"
6 
7 int main(void)
8 {
9    /* Uninitialised, but we know px[0] is 0x0. */
10    long *px = malloc(sizeof(long));
11    x0 = px[0];
12 
13    /* SYS_lwp_sigqueue          163 */
14    GO(SYS_lwp_sigqueue, "6s 1m");
15    SY(SYS_lwp_sigqueue, x0 - 1, x0 - 1, x0, x0 + 1, x0, x0 - 1); FAIL;
16 
17    return 0;
18 }
19 
20