/* Test for lwp_sigqueue syscall which accepts pid along the thread id. | |
Available since Solaris 12. | |
*/ | |
#include "scalar.h" | |
int main(void) | |
{ | |
/* Uninitialised, but we know px[0] is 0x0. */ | |
long *px = malloc(sizeof(long)); | |
x0 = px[0]; | |
/* SYS_lwp_sigqueue 163 */ | |
GO(SYS_lwp_sigqueue, "6s 1m"); | |
SY(SYS_lwp_sigqueue, x0 - 1, x0 - 1, x0, x0 + 1, x0, x0 - 1); FAIL; | |
return 0; | |
} | |