syscall.sh / mips64 / close
close
close a file descriptor
sys_close(unsigned int fd)
| number | 5003 (0x138b) |
|---|---|
| abi | n64 |
| entry point | sys_close |
| since | Linux 5.0 |
| man page | close(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 5003, the syscall number |
a0 | unsigned int fd |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 3
- x86 6
- arm64 57
- arm 6
- riscv64 57
- x32 1073741827
- loongarch64 57
- ppc64 6
- ppc 6
- s390x 6
- mipsn32 6003
- mipso32 4006
- alpha 6
- arc 57
- csky 57
- hexagon 57
- m68k 6
- microblaze 6
- nios2 57
- openrisc 57
- parisc 6
- sh 6
- sparc 6
- sparc64 6
- xtensa 9
Get this as JSON: https://api.syscall.sh/v2/syscalls/mips64/close