merge unlink variants
[trinity.git] / syscalls / chdir.c
blob97ac047cd191753beba25d3f9fb79c4686b80723
1 /*
2 * SYSCALL_DEFINE1(chdir, const char __user *, filename)
4 * On success, zero is returned.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_chdir = {
10 .name = "chdir",
11 .num_args = 1,
12 .arg1name = "filename",
13 .arg1type = ARG_PATHNAME,
14 .rettype = RET_ZERO_SUCCESS,
15 .group = GROUP_VFS,