* process.c [LINUX] (clone_flags): Add decoding of flags
CLONE_STOPPED, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWUSER,
CLONE_NEWPID, CLONE_NEWNET and CLONE_IO.  Also tidy the
whitespace a bit.

Signed-off-by: Jamie Lokier <ja...@shareable.org>
---
 process.c |   48 +++++++++++++++++++++++++++++++-----------------
 1 files changed, 31 insertions(+), 17 deletions(-)

diff --git a/process.c b/process.c
index bfc4c9d..99a0cfe 100644
--- a/process.c
+++ b/process.c
@@ -558,26 +558,40 @@ struct tcb *tcp;
 #define CLONE_DETACHED         0x00400000      /* parent wants no child-exit 
signal */
 #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"      },
-    { CLONE_FS,                "CLONE_FS"      },
-    { CLONE_FILES,     "CLONE_FILES"   },
-    { CLONE_SIGHAND,   "CLONE_SIGHAND" },
-    { CLONE_IDLETASK,  "CLONE_IDLETASK"},
-    { CLONE_PTRACE,    "CLONE_PTRACE"  },
-    { CLONE_VFORK,     "CLONE_VFORK"   },
-    { CLONE_PARENT,    "CLONE_PARENT"  },
-    { CLONE_THREAD,    "CLONE_THREAD" },
-    { CLONE_NEWNS,     "CLONE_NEWNS" },
-    { CLONE_SYSVSEM,   "CLONE_SYSVSEM" },
-    { CLONE_SETTLS,    "CLONE_SETTLS" },
-    { CLONE_PARENT_SETTID,"CLONE_PARENT_SETTID" },
+    { CLONE_VM,                "CLONE_VM"              },
+    { CLONE_FS,                "CLONE_FS"              },
+    { CLONE_FILES,     "CLONE_FILES"           },
+    { CLONE_SIGHAND,   "CLONE_SIGHAND"         },
+    { CLONE_IDLETASK,  "CLONE_IDLETASK"        },
+    { CLONE_PTRACE,    "CLONE_PTRACE"          },
+    { CLONE_VFORK,     "CLONE_VFORK"           },
+    { CLONE_PARENT,    "CLONE_PARENT"          },
+    { CLONE_THREAD,    "CLONE_THREAD"          },
+    { CLONE_NEWNS,     "CLONE_NEWNS"           },
+    { CLONE_SYSVSEM,   "CLONE_SYSVSEM"         },
+    { CLONE_SETTLS,    "CLONE_SETTLS"          },
+    { CLONE_PARENT_SETTID,"CLONE_PARENT_SETTID"        },
     { CLONE_CHILD_CLEARTID,"CLONE_CHILD_CLEARTID" },
-    { CLONE_DETACHED,  "CLONE_DETACHED" },
-    { CLONE_UNTRACED,  "CLONE_UNTRACED" },
-    { CLONE_CHILD_SETTID,"CLONE_CHILD_SETTID" },
-    { 0,               NULL            },
+    { CLONE_DETACHED,  "CLONE_DETACHED"        },
+    { 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                    },
 };
 
 # ifdef I386
-- 
1.7.0.4

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to