dup on metag
duplicate a file descriptor
sys_dup(unsigned int fildes)
| number | 23 (0x17) |
|---|---|
| abi | common |
| entry point | sys_dup |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | dup(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 23, the syscall number |
D1Ar1 | unsigned int fildes |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 32
- x86 41
- arm64 23
- arm 41
- riscv64 23
- ia32 41
- x32 1073741856
- loongarch64 23
- ppc64 41
- ppc 41
- s390x 41
- mips64 5031
- mipsn32 6031
- mipso32 4041
- alpha 41
- arc 23
- blackfin 41, removed in 4.17
- cris 41, removed in 4.17
- csky 23
- frv 41, removed in 4.17
- hexagon 23
- ia64 1057, removed in 6.7
- m32r 41, removed in 4.17
- m68k 41
- microblaze 41
- mn10300 41, removed in 4.17
- nds32 23, removed in 5.18
- nios2 23
- openrisc 23
- parisc 41
- score 23, removed in 4.17
- sh 41
- sparc 41
- sparc64 41
- tilegx 23, removed in 4.17
- tilepro 23, removed in 4.17
- xtensa 10
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/dup?kernel=all