mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 17:11:06 +00:00
9d84a81fe9
sysdeps/unix/sysv/linux/internal_accept4.S expects socket.S to be present if __NR_socketcall is defined (which it is on MIPS o32, even though there are separate syscalls as well) and __NR_accept4 isn't. MIPS does not have socket.S, since it uses separate syscalls, but though the accept4 syscall should be added soon present kernel headers do not have it. This patch creates a dummy internal_accept4.S for MIPS o32, and an accept4.c wrapper that undefines __NR_socketcall so that the main accept4.c falls back to the ENOSYS implementation if __NR_accept4 isn't defined; it doesn't seem worthwhile to have a special socketcall-based assembly implementation just for o32 on a few kernels in the range between accept4 being available via socketcall and the accept4 syscall being available.
3 lines
112 B
ArmAsm
3 lines
112 B
ArmAsm
/* MIPS does not have socket.S and the socketcall syscall should
|
|
generally be avoided, though it exists. */
|