mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-21 10:20:06 +00:00
1e1dc4e82d
So far accept4 was only supported on archs using socketcall for x86. This patch adds support for the remaining archs.
15 lines
331 B
ArmAsm
15 lines
331 B
ArmAsm
#include <kernel-features.h>
|
|
#include <sys/syscall.h>
|
|
#if !defined __NR_accept4 && defined __NR_socketcall
|
|
# define socket accept4
|
|
# ifdef __ASSUME_ACCEPT4
|
|
# define __socket accept4
|
|
# else
|
|
# define __socket __internal_accept4
|
|
# endif
|
|
# define NARGS 4
|
|
# define NEED_CANCELLATION
|
|
# define NO_WEAK_ALIAS
|
|
# include <socket.S>
|
|
#endif
|