syscall.sh / x86 / linkat

linkat

make a new name for a file

sys_linkat(int olddfd, const char *oldname, int newdfd, const char *newname, int flags)
number303 (0x12f)
abii386
entry pointsys_linkat
sinceLinux 3.3
man pagelinkat(2)
sourceelixir.bootlin.com

Registers

registervalue
eax303, the syscall number
ebxint olddfd
ecxconst char *oldname
edxint newdfd
esiconst char *newname
ediint 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/linkat