<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
It would appear from my man pages on signal (IRIX can use System V or BSD
flavours of signal)
that some sort of argument should be passed with
m_pfOldSIGPIPEHandler = signal(SIGPIPE, pipeSignalHandler);
perhaps something like:
m_pfOldSIGPIPEHandler = signal(SIGPIPE, pipeSignalHandler(int));
I tried throwing in a set of brackets with no value and got the following message...
m_pfOldSIGPIPEHandler = signal(SIGPIPE, pipeSignalHandler());
xap_UnixPSGenerate.cpp:237: no matching function for call to `ps_Generate::pipeS
ignalHandler ()'
xap_UnixPSGenerate.h:55: candidates are: ps_Generate::pipeSignalHandler(int)
Perhaps a null value can be passed?
bob..
Shaw Terwilliger wrote:
I've added #include <stdio.h> to the top of the file, just to catch
the popen/pclose definitions, but those were just the warnings.On Linux, it looks like signal() takes a handler who wants an
integer as an argument; it appears IRIX's signal() wants a
handler who takes no arguments.Is it as simple as this, or is the problem perhaps in the #include
of signal.h? Often an operating system will define multiple
function prototypes (which map to multiple implementations) for
development "compatability environments".Linux glibc2 signal():
void (*signal(int signum, void (*handler)(int)))(int);Solaris 7 signal():
void (*signal (int sig, void (*disp)(int)))(int);FreeBSD 2.2.5 signal():
void (*signal(int sig, void (*func)(int)))(int);--
Shaw Terwilliger
-- Bob Monaghan - Systems Manager Santa Barbara Studios, Inc. 300-201 N. Calle Cesar Chavez Santa Barbara, CA 93103 U.S.A.--------------F1D0E239C9B3243B9884600A Content-Type: text/x-vcard; charset=us-ascii; name="bob.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Bob Monaghan Content-Disposition: attachment; filename="bob.vcf" begin:vcard n:Monaghan;Bob tel;fax:805 568 3733 tel;work:805 568 1902 x-mozilla-html:FALSE url:http://www.sbst.com org:Santa Barbara Studios adr:;;300-201 N. Calle Cesar Chavez;Santa Barbara;CA;;USA version:2.1 email;internet:bob@sbst.com x-mozilla-cpt:;0 fn:Bob Monaghan end:vcard --------------F1D0E239C9B3243B9884600A--