syscall.sh / x86 / rmdir

rmdir

delete a directory

sys_rmdir(const char *pathname)
number40 (0x28)
abii386
entry pointsys_rmdir
sinceLinux 3.3
man pagermdir(2)
sourceelixir.bootlin.com

Registers

registervalue
eax40, the syscall number
ebxconst char *pathname
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/rmdir