2 * SYSCALL_DEFINE2(rename, const char __user *, oldname, const char __user *, newname
6 struct syscallentry syscall_rename
= {
10 .arg1type
= ARG_ADDRESS
,
11 .arg2name
= "newname",
12 .arg2type
= ARG_ADDRESS
,
17 * SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
18 int, newdfd, const char __user *, newname)
21 struct syscallentry syscall_renameat
= {
26 .arg2name
= "oldname",
27 .arg2type
= ARG_ADDRESS
,
30 .arg4name
= "newname",
31 .arg4type
= ARG_ADDRESS
,
37 * SYSCALL_DEFINE5(renameat2, int, olddfd, const char __user *, oldname,
38 int, newdfd, const char __user *, newname, unsigned int, flags)
41 #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */
42 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
44 struct syscallentry syscall_renameat2
= {
49 .arg2name
= "oldname",
50 .arg2type
= ARG_ADDRESS
,
53 .arg4name
= "newname",
54 .arg4type
= ARG_ADDRESS
,
59 .values
= { RENAME_NOREPLACE
, RENAME_EXCHANGE
},