🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #518

RN Patch #45, problems with signal()

#518
From: Adri Verhoef
Date: Tue, 17 Apr 1990 21:55
41 lines
2030 bytes
I still have a problem with the declaration of signal().
When compiling, the compiler complains about a redeclaration of signal
in "util.c"; my system says that signal() is of type void*, not int*,
but Configure doesn't recognize this.
In /usr/include/signal.h it says:
	extern	void(*signal())();

My system is Uniq System V.3.0, it is derived from AT&T.

On the other hand we also have AT&T System V.2.0 (namely some 3B2s),
but *they* say that signal is int*; here, /usr/include/signal.h states:
	extern	(*signal())();

Maybe we should determine what type signal() is from signal.h?

Like this:
= cut here =
: default
sigret=int
: determine type of signal function
if [ -f /usr/include/signal.h ]
then
	WHITE='[	 ]'; : between the brackets are a tab and a space.
	if grep "$WHITE*void$WHITE*(\*signal())();" \
					/usr/include/signal.h >/dev/null
	then
		sigret=void
	fi
fi
= end =

It works for me on:			where it says:
	Ultrix 3.1				extern void	(*signal())();
	Uniq S5R3.0				extern	void(*signal())();
	AT&T S5R2.0				extern	(*signal())();
	SCO Xenix S5R2.3.1			extern	(*signal())();
	Alliant Concentrix 5.0.0		int	(*signal())();
	SunOS 4.0_Export			void	(*signal())();
--
Adri Verhoef (a3@rivm.UUCP), News Administrator RIVM.
Technical Details
Message-ID: <2309@rivm05.UUCP>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!hp4nl!rivm!ccea3
References: <542@gazette.bcm.tmc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <2309@rivm05.UUCP>
Subject: RN Patch #45, problems with signal()
Date: Tue, 17 Apr 1990 21:55:53 +0000
From: ccea3@rivm.UUCP (Adri Verhoef)
References: <542@gazette.bcm.tmc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!hp4nl!rivm!ccea3
Newsgroups: news.software.b,comp.sources.bugs,news.software.nntp
Summary: Is it int* , or is it void* ?
Reply-To: a3@rivm.UUCP (Adri Verhoef)
Followup-To: news.software.b
Organization: RIVM, Bilthoven, The Netherlands
Lines: 40
Posted: Tue Apr 17 22:55:53 1990