/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
attic/test/clone.c
21 строка
343 B
Dmitry V. Levin
Move outdated files to attic
02 фев 2021, 11:00
02 фев 2021, 11:00
60c2d48
Код
Авторство
О чём код?
/* for CLONE_foo: */ #define _GNU_SOURCE 1 #include <stdio.h> #include <stdlib.h> #include <sched.h> #include <unistd.h> int child(void *arg) { write(1, "clone\n", 6); return 0; } int main(int argc, char *argv[]) { char stack[4096]; clone(child, stack+4000, CLONE_VM|CLONE_FS|CLONE_FILES, NULL); write(1, "original\n", 9); exit(0); }