dup2 on ia64
duplicate a file descriptor
sys_dup2(unsigned int oldfd, unsigned int newfd)
| number | 1070 (0x42e) |
|---|---|
| abi | common |
| entry point | sys_dup2 |
| since | Linux 5.0 or earlier (5.0 is the first release scanned for ia64) |
| man page | dup2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r15 | 1070, the syscall number |
out0 | unsigned int oldfd |
out1 | unsigned int newfd |
r8 | the return value |
Then run break 0x100000 to enter the kernel.
The kernel uses r10 to signal an error.
The pipe call returns file descriptors in r8 and r9.
This architecture was removed from the Linux kernel in Linux 6.7. The newest release with a syscall table here is Linux 6.6. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 33
- x86 63
- arm 63
- ia32 63
- x32 1073741857
- ppc64 63
- ppc 63
- s390x 63
- mips64 5032
- mipsn32 6032
- mipso32 4063
- alpha 90
- blackfin 63, removed in 4.17
- cris 63, removed in 4.17
- frv 63, removed in 4.17
- m32r 63, removed in 4.17
- m68k 63
- microblaze 63
- mn10300 63, removed in 4.17
- parisc 63
- score 1041, removed in 4.17
- sh 63
- sparc 90
- sparc64 90
- xtensa 11
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia64/dup2?kernel=all