Return-Path: owner-linux-activists@joker.cs.hut.fi
Received: from joker.cs.hut.fi (root@joker.cs.hut.fi [130.233.40.32]) by keos.Helsinki.FI (8.6.9/H46) with SMTP id FAA12700 for <wirzeniu@cs.Helsinki.FI>; Wed, 12 Oct 1994 05:03:32 +0200
Received: from joker.cs.hut.fi by niksula.hut.fi id <56525-3>; Wed, 12 Oct 1994 05:02:53 +0200
From: "Linux Activists" <linux-activists@joker.cs.hut.fi>
To: "Linux-Activists" <linux-activists@joker.cs.hut.fi>
Reply-To: "Linux-Activists" <linux-activists@joker.cs.hut.fi>
X-Note1: Remember to put 'X-Mn-Key: DOC' to your mail body or header
Subject: Linux-Activists - DOC Channel digest. 94-9-11-22:45
X-Mn-Key: DOC
Sender: owner-linux-activists@joker.cs.hut.fi
Message-Id: <94Oct12.050253eet.56525-3@niksula.hut.fi>
Date: Wed, 12 Oct 1994 05:02:45 +0200
Content-Length: 2195
Status: RO
X-Status: 


Topics:
	 sigaction() support? doc?


----------------------------------------------------------------------

From: "Daniel W. Connolly" <connolly@hal.com>
Subject: sigaction() support? doc?
Date: Tue, 11 Oct 1994 15:13:50 -0500



I posted this to comp.os.linux.development, but I got no response.  I
plan to have something to contribute in return for this information,
so I hope you don't mind this redistribution...

Dan

p.s. Where can I find an up-to-date archive of the linux-activists
mailing list? the one on tsx-11 only contains stuff up to Dec 1993.
I'd like to keep up to date on the 1.2 release process.

------- Forwarded Message

Newsgroups: comp.os.linux.development,comp.lang.modula3
Subject: sigaction() support? doc?

I'm working on the Modula-3 runtime for linux, trying to get
the VM-synchronized garbage collector to work.

I started with the SPARC based code, which uses sigvec().
The man page for sigvec() says to use sigation(). (There's
no sigvec() symbol in libc...)

The SPARC based code seems to think that signal handlers have a
signature like:

(* Signal vector "template" used in sigvec call. *)
TYPE
  SignalHandler =
    PROCEDURE
      (sig, code: int; scp: UNTRACED REF struct_sigcontext; addr: ADDRESS);

in C, that would be:

	typedef int SignalHandler(int, int, struct sigcontext*, void*);

The LINUX code in the release says signal handers look like:

  SignalHandler =
    PROCEDURE (sig: int);

The M3 runtime makes use of the addr paramater. Is it supported
in LINUX? (I'm using 1.1.45)

The sigaction(2) man page says:

DESCRIPTION
       WARNING: This man page is very old.


Is there a more recent man page? I tried reading the kernel source,
but I'm new to intel assembly, and I couldn't make out just what
goes on the stack for a signal handler in setup_frame() in
linux/kernel/signal.c

Hmmm.. the comments make reference to iBCS2 support. Does this
mean I might find my answer in the ELF documentation?

How about POSIX... I haven't checked there, but I can't imagine
they specify this level of detail for sigaction().

Ideas?

Dan

------- End of Forwarded Message



------------------------------

End of DOC Digest
*****************
-------
