#include #include #include #include int f(void *oie) { printf("%s\n",(char *)oie); return 0; } int main() { const int stack_size = 8192; int ret; void *buf = malloc(stack_size); void *buff_end = buf + stack_size; unsigned int flags =CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND; char msg[] = "tata"; ret = clone(f, buff_end, flags, (void *) msg); assert(ret != -1); printf("blit\n"); return 0; }