add pivot_root syscall wrapper
authorRich Felker <dalias@aerifal.cx>
Tue, 5 Apr 2011 16:32:10 +0000 (12:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 5 Apr 2011 16:32:10 +0000 (12:32 -0400)
src/linux/pivot_root.c [new file with mode: 0644]

diff --git a/src/linux/pivot_root.c b/src/linux/pivot_root.c
new file mode 100644 (file)
index 0000000..17e70c9
--- /dev/null
@@ -0,0 +1,6 @@
+#include "syscall.h"
+
+int pivot_root(const char *new, const char *old)
+{
+       return syscall(SYS_pivot_root, new, old);
+}