syscall.sh / x86 / rename

rename

change the name or location of a file

sys_rename(const char *oldname, const char *newname)
number38 (0x26)
abii386
entry pointsys_rename
sinceLinux 3.3
man pagerename(2)
sourceelixir.bootlin.com

Registers

registervalue
eax38, the syscall number
ebxconst char *oldname
ecxconst char *newname
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/rename