Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: N64: Wire getdents64(2)

As a relatively new ABI, N64 only had getdents syscall while other modern
architectures have getdents64.

This was noticed when Python 3.3 shifted to the latter one for aarch64.

[ralf@linux-mips.org: The history of getdents64 is a little complicated.
Commit 1a1d77dd589de5a567fa95e36aa6999c704ceca4 [Merge with 2.4.0-test7.]
added N64 getdents(2) to arch/mips64/kernel/scall_64.S as syscall 5213,
then dropped again in 578720675c44e54e8aa7c68f6dce59ed37ce3d3b [Overhaul
of the 64-bit syscall interface. Now heritage free.] for 2.5.18 in 2002.]

Signed-off-by: Aron Xu <aron@debian.org>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5285/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Aron Xu and committed by
Ralf Baechle
dec33aba 22047b85

+4 -2
+3 -2
arch/mips/include/uapi/asm/unistd.h
··· 694 694 #define __NR_process_vm_writev (__NR_Linux + 305) 695 695 #define __NR_kcmp (__NR_Linux + 306) 696 696 #define __NR_finit_module (__NR_Linux + 307) 697 + #define __NR_getdents64 (__NR_Linux + 308) 697 698 698 699 /* 699 700 * Offset of the last Linux 64-bit flavoured syscall 700 701 */ 701 - #define __NR_Linux_syscalls 307 702 + #define __NR_Linux_syscalls 308 702 703 703 704 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ 704 705 705 706 #define __NR_64_Linux 5000 706 - #define __NR_64_Linux_syscalls 307 707 + #define __NR_64_Linux_syscalls 308 707 708 708 709 #if _MIPS_SIM == _MIPS_SIM_NABI32 709 710
+1
arch/mips/kernel/scall64-64.S
··· 423 423 PTR sys_process_vm_writev /* 5305 */ 424 424 PTR sys_kcmp 425 425 PTR sys_finit_module 426 + PTR sys_getdents64 426 427 .size sys_call_table,.-sys_call_table