git://git.onelab.eu
/
lxc-userspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a48641c
)
just re-order
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 15 Jan 2014 09:46:26 +0000
(10:46 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 15 Jan 2014 09:46:26 +0000
(10:46 +0100)
setns.c
patch
|
blob
|
history
diff --git
a/setns.c
b/setns.c
index
e82bd26
..
e562cd6
100644
(file)
--- a/
setns.c
+++ b/
setns.c
@@
-4,6
+4,25
@@
#include <asm/unistd.h>
#include <sys/mount.h>
#include <asm/unistd.h>
#include <sys/mount.h>
+static PyObject *
+proc_mount(PyObject *self, PyObject *args)
+{
+ int sts;
+ sts = mount("none","/proc","proc",0,NULL);
+
+ return Py_BuildValue("i", sts);
+}
+
+static PyObject *
+proc_umount(PyObject *self, PyObject *args)
+{
+ int sts;
+ sts = umount("/proc");
+
+ return Py_BuildValue("i", sts);
+
+}
+
static PyObject *
chfscontext(PyObject *self, PyObject *args)
{
static PyObject *
chfscontext(PyObject *self, PyObject *args)
{
@@
-28,25
+47,6
@@
out:
return Py_BuildValue("i", sts);
}
return Py_BuildValue("i", sts);
}
-static PyObject *
-proc_mount(PyObject *self, PyObject *args)
-{
- int sts;
- sts = mount("none","/proc","proc",0,NULL);
-
- return Py_BuildValue("i", sts);
-}
-
-static PyObject *
-proc_umount(PyObject *self, PyObject *args)
-{
- int sts;
- sts = umount("/proc");
-
- return Py_BuildValue("i", sts);
-
-}
-
static PyObject *
chcontext(PyObject *self, PyObject *args)
{
static PyObject *
chcontext(PyObject *self, PyObject *args)
{