syscall.sh / x86 / unlinkat
unlinkat
delete a name and possibly the file it refers to
sys_unlinkat(int dfd, const char *pathname, int flag)
| number | 301 (0x12d) |
|---|---|
| abi | i386 |
| entry point | sys_unlinkat |
| since | Linux 3.3 |
| man page | unlinkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 301, the syscall number |
ebx | int dfd |
ecx | const char *pathname |
edx | int flag |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 263
- arm64 35
- arm 328
- riscv64 35
- x32 1073742087
- loongarch64 35
- ppc64 292
- ppc 292
- s390x 294
- mips64 5253
- mipsn32 6257
- mipso32 4294
- alpha 456
- arc 35
- csky 35
- hexagon 35
- m68k 294
- microblaze 301
- nios2 35
- openrisc 35
- parisc 281
- sh 301
- sparc 290
- sparc64 290
- xtensa 291
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/unlinkat