public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] signal interface: SIGINFO and sa_sigaction
@ 2000-06-14 16:04 SCHAN
  2000-06-15 14:44 ` David Mosberger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: SCHAN @ 2000-06-14 16:04 UTC (permalink / raw)
  To: linux-ia64


Hello,

I am porting some applications over from Linux x86 to IA64, and run into
problem with the signals - It seems to me that the IA64 kernel hasn't
implement the sa_sigaction interface for singal handlers - which, according
to the man page, should be implemented for Kernel 2.1.86. Just wonder
whether the IA64 kernel will be done up to support it?

-x-
Sunny Chan
Java Technology Center,
Mail Point 146, IBM UK, Hursley Park, Winchester, England SO21 2JN

Notes ID: Sunny Chan/UK/IBM
Email: schan@uk.ibm.com
Telephones: Internal: 246762 External: 01962 816762 Mobile: 07887-704088





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] signal interface: SIGINFO and sa_sigaction
  2000-06-14 16:04 [Linux-ia64] signal interface: SIGINFO and sa_sigaction SCHAN
@ 2000-06-15 14:44 ` David Mosberger
  2000-06-15 14:49 ` Jes Sorensen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2000-06-15 14:44 UTC (permalink / raw)
  To: linux-ia64

Yes, I see what you mean.  It looks like the glibc header file doesn't
define sa_sigaction as a (properly typed) synonym of sa_handler.  Jes,
can you fix this?  It looks to me that the IA-64 "struct sigaction"
should be defined like in sysdeps/unix/sysv/linux/bits/sigaction.h.

Note that from the kernel perspective, there is no difference between
sa_handler and sa_sigaction.  So as a quick workaround, you can simply
use sa_handler with the appropriate type cast.

	--david

>>>>> On Wed, 14 Jun 2000 17:04:41 +0100, SCHAN@uk.ibm.com said:

  Sunny> Hello,

  Sunny> I am porting some applications over from Linux x86 to IA64,
  Sunny> and run into problem with the signals - It seems to me that
  Sunny> the IA64 kernel hasn't implement the sa_sigaction interface
  Sunny> for singal handlers - which, according to the man page,
  Sunny> should be implemented for Kernel 2.1.86. Just wonder whether
  Sunny> the IA64 kernel will be done up to support it?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] signal interface: SIGINFO and sa_sigaction
  2000-06-14 16:04 [Linux-ia64] signal interface: SIGINFO and sa_sigaction SCHAN
  2000-06-15 14:44 ` David Mosberger
@ 2000-06-15 14:49 ` Jes Sorensen
  2000-06-15 15:40 ` David Mosberger
  2000-06-15 16:49 ` Ulrich Drepper
  3 siblings, 0 replies; 5+ messages in thread
From: Jes Sorensen @ 2000-06-15 14:49 UTC (permalink / raw)
  To: linux-ia64

>>>>> "David" = David Mosberger <davidm@hpl.hp.com> writes:

David> Yes, I see what you mean.  It looks like the glibc header file
David> doesn't define sa_sigaction as a (properly typed) synonym of
David> sa_handler.  Jes, can you fix this?  It looks to me that the
David> IA-64 "struct sigaction" should be defined like in
David> sysdeps/unix/sysv/linux/bits/sigaction.h.

I'll make sure it gets fixed in glibc-2.2

Jes



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] signal interface: SIGINFO and sa_sigaction
  2000-06-14 16:04 [Linux-ia64] signal interface: SIGINFO and sa_sigaction SCHAN
  2000-06-15 14:44 ` David Mosberger
  2000-06-15 14:49 ` Jes Sorensen
@ 2000-06-15 15:40 ` David Mosberger
  2000-06-15 16:49 ` Ulrich Drepper
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2000-06-15 15:40 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Thu, 15 Jun 2000 16:28:42 +0100, SCHAN@uk.ibm.com said:

  Sunny> But then the sa_sigaction function does require kernel to
  Sunny> call the handler with parameters (struct siginfo_t), if I
  Sunny> just patch the struct sigaction, will the other pieces of
  Sunny> kernel signal handling routine render those parameters and
  Sunny> pass it to the signal handler? - I am not an kernel expert,
  Sunny> so information is really appericated!

The kernel _always_ passes siginfo and sigcontext as the second and
third arguments to a signal handler.  sa_sigaction is just syntactic
sugar.

	--david



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] signal interface: SIGINFO and sa_sigaction
  2000-06-14 16:04 [Linux-ia64] signal interface: SIGINFO and sa_sigaction SCHAN
                   ` (2 preceding siblings ...)
  2000-06-15 15:40 ` David Mosberger
@ 2000-06-15 16:49 ` Ulrich Drepper
  3 siblings, 0 replies; 5+ messages in thread
From: Ulrich Drepper @ 2000-06-15 16:49 UTC (permalink / raw)
  To: linux-ia64

David Mosberger <davidm@hpl.hp.com> writes:

> Yes, I see what you mean.  It looks like the glibc header file doesn't
> define sa_sigaction as a (properly typed) synonym of sa_handler.  Jes,
> can you fix this?

I changed this already in my version of the tree before checking it in.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-06-15 16:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-14 16:04 [Linux-ia64] signal interface: SIGINFO and sa_sigaction SCHAN
2000-06-15 14:44 ` David Mosberger
2000-06-15 14:49 ` Jes Sorensen
2000-06-15 15:40 ` David Mosberger
2000-06-15 16:49 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox