1*4b169a6bSchristos /* Check exit_group(2) trivially. Newlib doesn't have it and the 2*4b169a6bSchristos pre-v32 glibc requires updated headers we'd have to check or adjust 3*4b169a6bSchristos for. 4*4b169a6bSchristos #progos: linux 5*4b169a6bSchristos #output: exit_group\n 6*4b169a6bSchristos */ 7*4b169a6bSchristos #include <unistd.h> 8*4b169a6bSchristos #include <sys/syscall.h> 9*4b169a6bSchristos #include <stdio.h> 10*4b169a6bSchristos #include <stdlib.h> 11*4b169a6bSchristos #ifndef EXITVAL 12*4b169a6bSchristos #define EXITVAL 0 13*4b169a6bSchristos #endif main(int argc,char ** argv)14*4b169a6bSchristosint main (int argc, char **argv) 15*4b169a6bSchristos { 16*4b169a6bSchristos printf ("exit_group\n"); 17*4b169a6bSchristos syscall (SYS_exit_group, EXITVAL); 18*4b169a6bSchristos printf ("failed\n"); 19*4b169a6bSchristos abort (); 20*4b169a6bSchristos } 21