This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove socket.S implementation
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 21 May 2015 15:08:53 +0000
- Subject: Re: [PATCH] Remove socket.S implementation
- Authentication-results: sourceware.org; auth=none
- References: <555C9805 dot 1010100 at linaro dot org>
Another (minor) issue: previously some socket.S implementations would use
the NARGS value to set up only as many array elements as that particular
socketcall operation needed. This patch passes extra zero elements in so
that every operation sets up six array elements whether or not needed.
It should be possible to make the SOCKETCALL and SOCKETCALL_CANCEL macros
variadic so they set up long int __args[] with only as many arguments as
were passed (via some intermediate macros to deal with casting those
arguments to long, I suppose).
--
Joseph S. Myers
joseph@codesourcery.com