summaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-05 12:32:10 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-05 12:32:10 -0400
commit5546f7a73a9b7e53ee48f23d9b51922cef8c03df (patch)
tree22b183fca307de8c1a5eb1ad899d4e3e5b0b2fda /src/linux
parente72180083e4b0203d1883b6054198decdb60071c (diff)
downloadmusl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.tar.gz
musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.tar.bz2
musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.tar.xz
musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.zip
add pivot_root syscall wrapper
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/pivot_root.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linux/pivot_root.c b/src/linux/pivot_root.c
new file mode 100644
index 00000000..17e70c91
--- /dev/null
+++ b/src/linux/pivot_root.c
@@ -0,0 +1,6 @@
+#include "syscall.h"
+
+int pivot_root(const char *new, const char *old)
+{
+ return syscall(SYS_pivot_root, new, old);
+}