]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/pivot_root.c
1 /* pivot_root.c - Change the root file system */
3 /* Written 2000 by Werner Almesberger */
7 #include <linux/unistd.h>
10 _syscall2(int,pivot_root
,const char *,new_root
,const char *,put_old
)
13 int main(int argc
,const char **argv
)
16 fprintf(stderr
,"usage: %s new_root put_old\n",argv
[0]);
19 if (pivot_root(argv
[1],argv
[2]) < 0) {