Home | History | Annotate | Download | only in solaris
      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  */
      5 
      6 #include "scalar.h"
      7 
      8 int main(void)
      9 {
     10    /* Uninitialised, but we know px[0] is 0x0. */
     11    long *px = malloc(sizeof(long));
     12    x0 = px[0];
     13 
     14    /* SYS_lwp_kill              163 */
     15    GO(SYS_lwp_kill, "2s 0m");
     16    SY(SYS_lwp_kill, x0 - 1, x0); FAIL;
     17 
     18    return 0;
     19 }
     20 
     21