glibc/sysdeps/unix/sysv/linux/internal_accept4.S
Jakub Jelinek 1e1dc4e82d Implement accept4 for more archs using socketcall.
So far accept4 was only supported on archs using socketcall for x86.
This patch adds support for the remaining archs.
2009-05-22 08:25:34 -07:00

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