remove [64] cleanup TODO
[trinity.git] / syscalls / ftruncate.c
blob36510f2f8bb492b9dc4aeb41d6e58c1302481282
1 /*
2 * SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_ftruncate = {
7 .name = "ftruncate",
8 .num_args = 2,
9 .arg1name = "fd",
10 .arg1type = ARG_FD,
11 .arg2name = "length",
12 .arg2type = ARG_LEN,
13 .rettype = RET_ZERO_SUCCESS,
14 .flags = NEED_ALARM,
15 .group = GROUP_VFS,
20 * SYSCALL_DEFINE(ftruncate64)(unsigned int fd, loff_t length)
22 * On success, zero is returned.
23 * On error, -1 is returned, and errno is set appropriately.
26 struct syscallentry syscall_ftruncate64 = {
27 .name = "ftruncate64",
28 .num_args = 2,
29 .arg1name = "fd",
30 .arg1type = ARG_FD,
31 .arg2name = "length",
32 .arg2type = ARG_LEN,
33 .rettype = RET_ZERO_SUCCESS,
34 .flags = NEED_ALARM,
35 .group = GROUP_VFS,