file.c: rename dirent64 struct to kernel_dirent64 so things compile again with newer libcs
17 lines
247 B
C
17 lines
247 B
C
#include <stdio.h>
|
|
#include <sched.h>
|
|
|
|
int child(void* arg) {
|
|
write(1, "clone\n", 6);
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
char stack[4096];
|
|
clone(child, stack+4000, CLONE_VM|CLONE_FS|CLONE_FILES, NULL);
|
|
write(1, "original\n", 9);
|
|
exit(0);
|
|
}
|