Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Michel van der List <M_vanderList@fccc.edu>
Subject: sigaction question
Date: 1995/03/30	[thread overview]
Message-ID: <3leb5g$72a@taurus.fccc.edu> (raw)

Hi there.

I was looking through the man pages to try to figure out how
sigaction works. Most things are pretty straight-forward, but
one thing is eluding me. I'm reading about the sa_flags and the
SA_SIGINFO bit:

	If this bit is cleared and the signal is caught, the
	argument specified by the signal parameter is passed as
	the only argument to the signal catching function. Two
	additional arguments are also available. The second
	argument provides an exception-specific code defined in
	<sys/signal.h>; this value is always zero (0) for
	nonexception signals. The third argument is a pointer
	to a sigcontext structure.

So how many arguments do I get passed to my handler? One or
three? What does it mean when 'the signal parameter is passed
as the only argument', but 'Two additional arguments are also
available'? Can somebody enlighted me? Does somebody have some
example code to get to the sigcontext structure through signal
handling?

 a d v
Michel a
 e c n

-- 
----------------------+--------------------------+-----------------------------
Michel van der List   | 'Dat typies hollands     | The Fox Chase Cancer Center
M_vanderlist@fccc.edu |      vingertje'          |      7701 Burholme Avenue
(215) 728-3660        |                          |    Philadelphia, PA  19111



             reply	other threads:[~1995-03-30  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-30  5:00 Michel van der List [this message]
1995-04-06  4:00 ` sigaction question Jeffrey M. Denham
read-only archive

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