Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
d4c85ebbc64b1eb141b310a4634c6ca37fd352c1
/
.
/
test
/
clone.c
blob: 75bc54516c5bd32770f62d0f3d914ecff370a668 [
file
] [
log
] [
blame
]
#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
);
}