Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / solaris / scalar_lwp_kill.c
blob929f5cfcb8905ed1c794ec533f8aeb08f407c107
1 /* Test for lwp_kill syscall which is available on illumos
2 and Solaris 11 and 11.1. This syscall has been renamed
3 on Solaris 11.2 to lwp_sigqueue and extra parameters added.
4 */
6 #include "scalar.h"
8 int main(void)
10 /* Uninitialised, but we know px[0] is 0x0. */
11 long *px = malloc(sizeof(long));
12 x0 = px[0];
14 /* SYS_lwp_kill 163 */
15 GO(SYS_lwp_kill, "2s 0m");
16 SY(SYS_lwp_kill, x0 - 1, x0); FAIL;
18 return 0;