[1240] in SIPB_Linux_Development
Posix
daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sun Feb 11 00:33:45 1996
Date: Sun, 11 Feb 1996 00:33:21 -0500
To: sipb-athena@MIT.EDU
From: Salvatore Valente <svalente@MIT.EDU>
It's annoying having to make sure "POSIX" gets defined whenever
building something from sipb-athena. It's especially annoying that
the program will seem to compile fine but will not handle signals
correctly. It's annoying because some packages use private Imake
config files and some use athena config files and some use xmkmf and
some use Makefiles, and some C files use logic like "#ifdef linux,
#define POSIX". It leads to ugly and non-portable code. So, to remedy
this problem, I make this suggestion:
Assume that nobody will ever attempt to compile sipb-athena on a
non-Posix system.
This assumption makes life much easier. All programs can always use
sigaction(), without surrouding it by any silly #ifdef's. All
programs can make sure signal handlers are of type void. They can
always use <string.h>, strchr(), memcpy(), etc.
Unless I hear any good reason not to, I'm going to start doing this.
(That is, removing #ifdef's around sigaction(), removing any calls to
signal(), etc.)
-Sal.