move_pages: just use calloc
[trinity.git] / syscalls / sendfile.c
blob05e49e9a9632c6f9eacb75a2425d6b85514ecf57
1 /*
2 * SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_sendfile = {
7 .name = "sendfile",
8 .num_args = 4,
9 .arg1name = "out_fd",
10 .arg1type = ARG_FD,
11 .arg2name = "in_fd",
12 .arg2type = ARG_FD,
13 .arg3name = "offset",
14 .arg3type = ARG_ADDRESS,
15 .arg4name = "count",
16 .arg4type = ARG_LEN,
17 .flags = NEED_ALARM,
21 * SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count)
24 struct syscallentry syscall_sendfile64 = {
25 .name = "sendfile",
26 .num_args = 4,
27 .arg1name = "out_fd",
28 .arg1type = ARG_FD,
29 .arg2name = "in_fd",
30 .arg2type = ARG_FD,
31 .arg3name = "offset",
32 .arg3type = ARG_ADDRESS,
33 .arg4name = "count",
34 .arg4type = ARG_LEN,
35 .flags = NEED_ALARM,