note a leak that needs fixing eventually
[trinity.git] / syscalls / fchdir.c
blobd1c79fa8ac2e6e1b2076509b2a4672412b30bdad
1 /*
2 * SYSCALL_DEFINE1(fchdir, unsigned int, fd)
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_fchdir = {
10 .name = "fchdir",
11 .num_args = 1,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .rettype = RET_ZERO_SUCCESS,
15 .flags = NEED_ALARM,
16 .group = GROUP_VFS,