This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] S390: Call direct system calls for socket operations.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 13 Oct 2015 12:07:56 +0000
- Subject: Re: [PATCH] S390: Call direct system calls for socket operations.
- Authentication-results: sourceware.org; auth=none
- References: <mvinhp$mak$1 at ger dot gmane dot org> <561CF109 dot 9030403 at linaro dot org>
On Tue, 13 Oct 2015, Adhemerval Zanella wrote:
> I would prefer to not add another arch-specific implementation, but instead
> use something like __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL and use accept4
> directly in sysdeps/unix/sysv/linux/accept.c. Same for recv and send.
Also note that using recvfrom for recv and sendto for send is what the
linux/generic implementations do (but not accept4 for accept - I haven't
checked if that's simply because of the asm-generic syscall interface
being introduced before accept4). Maybe there's futher opportunity for
sharing with those implementations to reduce duplication?
--
Joseph S. Myers
joseph@codesourcery.com