move_pages: just use calloc
[trinity.git] / syscalls / truncate.c
blobf85f1405e470870e99f60b42d258da58130fdfe2
1 /*
2 * SYSCALL_DEFINE2(truncate, const char __user *, path, long, length)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_truncate = {
7 .name = "truncate",
8 .num_args = 2,
9 .arg1name = "path",
10 .arg1type = ARG_PATHNAME,
11 .arg2name = "length",
12 .arg2type = ARG_LEN,
13 .group = GROUP_VFS,
17 * SYSCALL_DEFINE(truncate64)(const char __user * path, loff_t length)
20 struct syscallentry syscall_truncate64 = {
21 .name = "truncate64",
22 .num_args = 2,
23 .arg1name = "path",
24 .arg1type = ARG_PATHNAME,
25 .arg2name = "length",
26 .arg2type = ARG_LEN,
27 .group = GROUP_VFS,