]> granicus.if.org Git - strace/commitdiff
Recognize more clone flags
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 3 Dec 2010 17:19:51 +0000 (17:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 3 Dec 2010 17:27:59 +0000 (17:27 +0000)
* process.c (CLONE_*): Define more flags from linux v2.6.25.
(clone_flags): Add entries for them.
Proposed by <zhangyanfei@cn.fujitsu.com>.

process.c

index 7b3eda1dc600804c24cb4f0e0a0d1113195db745..c4615a24b16ad61c5b93f36b77763c098eb38a73 100644 (file)
--- a/process.c
+++ b/process.c
@@ -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            },
 };