Browse Source

add pivot_root syscall wrapper

Rich Felker 14 năm trước cách đây
mục cha
commit
5546f7a73a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/linux/pivot_root.c

+ 6 - 0
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);
+}