move_pages: just use calloc
[trinity.git] / syscalls / creat.c
blob1fa6631900380596841b9408270d7304f814924f
1 /*
2 * SYSCALL_DEFINE2(creat, const char __user *, pathname, int, mode)
4 * returns the new file descriptor on success.
5 * returns -1 if an error occurred (in which case, errno is set appropriately).
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_creat = {
10 .name = "creat",
11 .num_args = 2,
12 .arg1name = "pathname",
13 .arg1type = ARG_PATHNAME,
14 .arg2name = "mode",
15 .arg2type = ARG_MODE_T,
16 .rettype = RET_FD,
17 .group = GROUP_VFS,