add setxid.c for new set*id() framework. missed in last commit.
[oweals/musl.git] / src / linux / chroot.c
index b5af62dcf3b8fe7241baae47c83ea28f5ce43efb..82b4fe75c6bd183aec7b95caa3ff00826f35ecf2 100644 (file)
@@ -1,8 +1,7 @@
 #include <unistd.h>
-#define SYSCALL_STANDALONE
 #include "syscall.h"
 
 int chroot(const char *path)
 {
-       return syscall1(__NR_chroot, (long)path);
+       return syscall(SYS_chroot, path);
 }