From: Richard Henderson <rth@twiddle.net>
To: Joseph Myers <joseph@codesourcery.com>,
Florian Weimer <fweimer@redhat.com>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: Calling functions through a pointer of incorrect type
Date: Tue, 29 Mar 2016 21:27:00 -0000 [thread overview]
Message-ID: <56FAF335.7080702@twiddle.net> (raw)
In-Reply-To: <alpine.DEB.2.10.1603222125470.14539@digraph.polyomino.org.uk>
On 03/22/2016 02:33 PM, Joseph Myers wrote:
> On Tue, 22 Mar 2016, Florian Weimer wrote:
>> if (fct == NULL)
>> /* We are cheating here. The gethostbyname2_r
>> function does not have the same interface as
>> gethostbyname3_r but the extra arguments the
>> latter takes are added at the end. So the
>> gethostbyname2_r code will just ignore them. */
>> fct = __nss_lookup_function (nip, "gethostbyname2_r");
>
> ... they aren't inherently bugs if all supported
> ABIs have the required property.
The only ABI I can think of that doesn't have this property is Windows
__stdcall. Which obviously isn't used in any glibc configuration.
r~
prev parent reply other threads:[~2016-03-29 21:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 9:20 Florian Weimer
2016-03-22 19:14 ` Joseph Myers
2016-03-22 20:25 ` Florian Weimer
2016-03-22 21:33 ` Joseph Myers
2016-03-29 21:27 ` Richard Henderson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56FAF335.7080702@twiddle.net \
--to=rth@twiddle.net \
--cc=fweimer@redhat.com \
--cc=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).