/html/

b8/copy-to-eax 8/imm32 cd/syscall 0x80/imm8 c3/return # http://man7.org/linux/man-pages/man2/unlink.2.html syscall_unlink: # filename/ebx : (addr kernel-string) -> status/eax : int b8/copy-to-eax 0xa/imm32 cd/syscall 0x80/imm8 c3/return # http://man7.org/linux/man-pages/man2/rename.2.html syscall_rename: # source/ebx : (addr kernel-string), dest/ecx : (addr kernel-string) -> status/eax : int b8/copy-to-eax 0x26/imm32 cd/syscall 0x80/imm8 c3/return # https://github.com/torvalds/linux/blob/fa121bb3fed6313b1f0af23952301e06cf6d32ed/mm/nommu.c#L1352 syscall_mmap: # arg/ebx : (addr mmap_arg_struct) -> status/eax : int # the important thing: ebx+4 contains the 32-bit size to be allocated b8/copy-to-eax 0x5a/imm32 cd/syscall 0x80/imm8 c3/return