diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-05-22 08:25:34 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-05-22 08:25:34 -0700 |
commit | 1e1dc4e82dd4f31b87440388614c3e4bccdd5f3c (patch) | |
tree | 2222fa67e02e1b84f967a05a297794e83b21821e /sysdeps/unix/sysv/linux/internal_accept4.S | |
parent | be6b2e5cf302f984d8f405c0d40e7a3979c47bc3 (diff) | |
download | glibc-1e1dc4e82dd4f31b87440388614c3e4bccdd5f3c.tar.gz |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/internal_accept4.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/internal_accept4.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/internal_accept4.S b/sysdeps/unix/sysv/linux/internal_accept4.S new file mode 100644 index 0000000000..ffc553624c --- /dev/null +++ b/sysdeps/unix/sysv/linux/internal_accept4.S @@ -0,0 +1,14 @@ +#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 |