Recognize more clone flags

* process.c (CLONE_*): Define more flags from linux v2.6.25.
(clone_flags): Add entries for them.
Proposed by <zhangyanfei@cn.fujitsu.com>.
This commit is contained in:
Дмитрий Левин 2010-12-03 17:19:51 +00:00
parent 0ddd8addef
commit e3d4b68a7b

View File

@ -557,6 +557,13 @@ struct tcb *tcp;
#define CLONE_CHILD_CLEARTID 0x00200000 /* clear the TID in the child */
#define CLONE_UNTRACED 0x00800000 /* set if the tracing process can't force CLONE_PTRACE on this clone */
#define CLONE_CHILD_SETTID 0x01000000 /* set the TID in the child */
#define CLONE_STOPPED 0x02000000 /* Start in stopped state */
#define CLONE_NEWUTS 0x04000000 /* New utsname group? */
#define CLONE_NEWIPC 0x08000000 /* New ipcs */
#define CLONE_NEWUSER 0x10000000 /* New user namespace */
#define CLONE_NEWPID 0x20000000 /* New pid namespace */
#define CLONE_NEWNET 0x40000000 /* New network namespace */
#define CLONE_IO 0x80000000 /* Clone io context */
static const struct xlat clone_flags[] = {
{ CLONE_VM, "CLONE_VM" },
@ -575,6 +582,13 @@ static const struct xlat clone_flags[] = {
{ CLONE_CHILD_CLEARTID,"CLONE_CHILD_CLEARTID" },
{ CLONE_UNTRACED, "CLONE_UNTRACED" },
{ CLONE_CHILD_SETTID,"CLONE_CHILD_SETTID" },
{ CLONE_STOPPED, "CLONE_STOPPED" },
{ CLONE_NEWUTS, "CLONE_NEWUTS" },
{ CLONE_NEWIPC, "CLONE_NEWIPC" },
{ CLONE_NEWUSER, "CLONE_NEWUSER" },
{ CLONE_NEWPID, "CLONE_NEWPID" },
{ CLONE_NEWNET, "CLONE_NEWNET" },
{ CLONE_IO, "CLONE_IO" },
{ 0, NULL },
};