syscall.sh / x86 / renameat2

renameat2

change the name or location of a file

sys_renameat2(int olddfd, const char *oldname, int newdfd, const char *newname, unsigned int flags)
number353 (0x161)
abii386
entry pointsys_renameat2
sinceLinux 3.15
man pagerenameat2(2)
sourceelixir.bootlin.com

Registers

registervalue
eax353, the syscall number
ebxint olddfd
ecxconst char *oldname
edxint newdfd
esiconst char *newname
ediunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/renameat2