move_pages: just use calloc
[trinity.git] / syscalls / chmod.c
blob017fb7678d400f9c72e3bdc120ebff45122d03f9
1 /*
2 * SYSCALL_DEFINE2(chmod, const char __user *, filename, mode_t, mode)
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_chmod = {
10 .name = "chmod",
11 .num_args = 2,
12 .arg1name = "filename",
13 .arg1type = ARG_PATHNAME,
14 .arg2name = "mode",
15 .arg2type = ARG_MODE_T,
16 .rettype = RET_ZERO_SUCCESS,