split up constants.h some
[trinity.git] / syscalls / fadvise64.c
blob42f33420f494e44a2190c96e739cece60df9ae65
1 /*
2 * SYSCALL_DEFINE(fadvise64)(int fd, loff_t offset, size_t len, int advice)
4 * On success, zero is returned.
5 * On error, an error number is returned.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_fadvise64 = {
10 .name = "fadvise64",
11 .num_args = 4,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "offset",
15 .arg3name = "len",
16 .arg3type = ARG_LEN,
17 .arg4name = "advice",
18 .rettype = RET_ZERO_SUCCESS,
19 .flags = NEED_ALARM,
20 .group = GROUP_VFS,
23 #ifndef __arm__
25 * SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice)
27 * On success, zero is returned.
28 * On error, an error number is returned.
31 struct syscallentry syscall_fadvise64_64 = {
32 .name = "fadvise64_64",
33 .num_args = 4,
34 .arg1name = "fd",
35 .arg1type = ARG_FD,
36 .arg2name = "offset",
37 .arg3name = "len",
38 .arg3type = ARG_LEN,
39 .arg4name = "advice",
40 .rettype = RET_ZERO_SUCCESS,
41 .flags = NEED_ALARM,
42 .group = GROUP_VFS,
45 #else
48 * asmlinkage long sys_arm_fadvise64_64(int fd, int advice, loff_t offset, loff_t len)
49 * ARM has same as fadvise64 but with other argument order.
51 struct syscallentry syscall_arm_fadvise64_64 = {
52 .name = "fadvise64_64",
53 .num_args = 4,
54 .arg1name = "fd",
55 .arg1type = ARG_FD,
56 .arg2name = "advice",
57 .arg3name = "offset",
58 .arg4name = "len",
59 .arg4type = ARG_LEN,
60 .rettype = RET_ZERO_SUCCESS,
61 .flags = NEED_ALARM,
62 .group = GROUP_VFS,
64 #endif