From: Cary Coutant <cary@cup.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] Endianness and signals
Date: Tue, 21 Oct 2003 21:57:50 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106677371825584@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106669369711349@msgid-missing>
> The fourth case is that the application has signal handlers that
> expect to get called in the "opposite" byte-order and those are the
> ones that would break if we changed the current behavior.
Do you know of any such applications?
How likely is it that someone would code an application in such a way
that they guarantee that a certain signal will occur only when
executing in big-endian mode? (And, conversely, that other signals will
occur only when executing in little-endian mode?)
If I were writing such an application, and I wanted to figure out what
to expect when a signal handler is called, my first thought* would be
to expect it to get called in a standard (i.e., little-endian) mode, no
matter what. I might then test it and discover that I was wrong. At
that point, I'd hardly consider that a definitive feature of Linux on
IA-64; I'd be much more likely to consider it a bug, and bring it to
someone's attention.
Of course, I realize that most people don't go through that thought
process -- they assume that the way it works today is the way it will
always work. I just have a hard time working up any sympathy for those
people.
By the way, when you arm the signal handler, do you copy the function
pointer or the function descriptor? Will the user-space code that makes
the call to the signal handler work if you're in big-endian mode?
-cary
* Actually, my first thought would be to see if it's documented
somewhere. But this is Linux. :-)
next prev parent reply other threads:[~2003-10-21 21:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 23:42 [RFC] Endianness and signals R. Lake
2003-10-21 0:10 ` David Mosberger
2003-10-21 20:37 ` Cary Coutant
2003-10-21 20:56 ` David Mosberger
2003-10-21 21:57 ` Cary Coutant [this message]
2003-10-21 22:24 ` David Mosberger
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=marc-linux-ia64-106677371825584@msgid-missing \
--to=cary@cup.hp.com \
--cc=linux-ia64@vger.kernel.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