/* Check that unimplemented clone syscalls get the right treatment. #notarget: cris*-*-elf #xerror: #output: Unimplemented clone syscall * #output: program stopped with signal 4 (*).\n */ #include #include #include #include #include #include #include int pip[2]; int process (void *arg) { return 0; } int main (void) { int retcode; long stack[16384]; retcode = clone (process, (char *) stack + sizeof (stack) - 64, 0, "cba"); if (retcode == -1 && errno == ENOSYS) printf ("ENOSYS\n"); printf ("xyzzy\n"); return 0; }