proper semi-portable use of signal()?

Chris Torek torek at elf.ee.lbl.gov
Fri Mar 29 04:13:21 AEST 1991


In article <15605 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>The signal handler function does NOT have a variable argument list,
>but always receives precisely one argument of type int.  The ,... is
>a bogus attempt to accommodate 4.2BSD-style signal handers.  If some
>recent modification has been made to POSIX.1 that requires this, it
>is WRONG and in general incompatible with the C standard.

The word on the streets is that current POSIX drafts *do* require more
than one argument.

It was probably a mistake for ANSI X3.159-1989 and POSIX to attempt
to share the name `signal' and the type `signal handler' at all.
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.std.c mailing list