diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-05 12:32:10 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-05 12:32:10 -0400 |
commit | 5546f7a73a9b7e53ee48f23d9b51922cef8c03df (patch) | |
tree | 22b183fca307de8c1a5eb1ad899d4e3e5b0b2fda /src/linux | |
parent | e72180083e4b0203d1883b6054198decdb60071c (diff) | |
download | musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.tar.gz musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.tar.xz musl-5546f7a73a9b7e53ee48f23d9b51922cef8c03df.zip |
add pivot_root syscall wrapper
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/pivot_root.c | 6 |
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); +} |