1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 04:12:51 +00:00

Migrate to POSIX signals. (#190)

This removes SYSVSIGNALS as we're always and only using POSIX
signals now.

Some platform differences have been papered over. We used to
only ignore SIGPIPE when using BSD signals, but we now ignore
it all the time.

While the SIGFPE code will now compile, it hasn't been updated
to work on modern OSes fully yet as it will need to enable
the correct FP exceptions.
This commit is contained in:
Bruce Mitchener
2021-01-09 11:55:39 +07:00
committed by GitHub
parent c83b4879ab
commit 2dcdf14334
20 changed files with 161 additions and 293 deletions

View File

@@ -11,8 +11,6 @@ Flag Name Meaning/Usage
_________ ________________________________________________________
BYTESWAP Used when compiling for a hardware architecture that has
byte-swapped words and word-swapped 32-bit cells, e.g. 80386.
SYSVSIGNALS True when compiling on a system that requires the use of
SYSV (rather than BSD) signal-handling code.
I386 True if compiling for the Sun386i (not just any 80386);
used because the 386i's display controller is odd.
OS4 True if compiling for SunOS 4.x

View File

@@ -24,7 +24,7 @@ DISPOPTFLAGS = -O2 -g3
FPFLAGS =
DFLAGS = -DLINUX -DAIX -DOLD_CURSOR \
-DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \
-DRELEASE=351 -DSYSVSIGNALS
-DRELEASE=351
LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt

View File

@@ -49,7 +49,7 @@ MAIN = main
DEBUGFLAGS = # -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS5 -DAIX -DUSE_DLPI -DNOPIXRECT \
-I$(OPENWINHOME)/include -DSYSVSIGNALS \
-I$(OPENWINHOME)/include \
-DOLD_CURSOR -DLOGINT -DFORKCOMM -DLOCK_X_UPDATES
INLINEFLAGS =

View File

@@ -23,7 +23,7 @@ DISPOPTFLAGS = -O2 -g3
FPFLAGS =
DFLAGS = -DLINUX -DAIX -DOLD_CURSOR \
-DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \
-DRELEASE=351 -DSYSVSIGNALS
-DRELEASE=351
LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt

View File

@@ -23,7 +23,7 @@ DISPOPTFLAGS = -O2 -g3
FPFLAGS =
DFLAGS = -DLINUX -DAIX -DOLD_CURSOR \
-DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \
-DRELEASE=351 -DSYSVSIGNALS
-DRELEASE=351
LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt

View File

@@ -24,7 +24,7 @@ DISPOPTFLAGS = -O2 -g3
FPFLAGS =
DFLAGS = -DLINUX -DAIX -DOLD_CURSOR \
-DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \
-DRELEASE=351 -DSYSVSIGNALS
-DRELEASE=351
LDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt
LDELDFLAGS = -L/usr/X11/lib -lX11 -lc -lm -lcrypt

View File

@@ -42,9 +42,7 @@ FPFLAGS =
DFLAGS = $(XFLAGS) \
$(DEBUGFLAGS) \
-DOS5 \
-DBYTESWAP -DSYSVSIGNALS \
-DOLD_CURSOR -DLOGINT \
-DOS5 -DBYTESWAP -DOLD_CURSOR -DLOGINT \
-DNOPIXRECT -DFORKCOMM -DLOCK_X_UPDATES \
-DRELEASE=351

View File

@@ -46,7 +46,7 @@ DFLAGS = $(XFLAGS) \
-DBYTESWAP \
-DOLD_CURSOR -DLOGINT \
-DNOPIXRECT -DFORKCOMM -DLOCK_X_UPDATES \
-I$(OPENWINHOME)/include -DSYSVSIGNALS \
-I$(OPENWINHOME)/include \
-DRELEASE=210
LDFLAGS = -R$(OPENWINHOME)/lib -L$(OPENWINHOME)/lib -lX11 -lc -lm -lsocket -lnsl

View File

@@ -45,7 +45,7 @@ MAIN = main
DEBUGFLAGS = # -DSTACKCHECK -DFNSTKCHECK
MACHINEFLAGS = -DOS5 -DUSE_DLPI -DNOPIXRECT -DSYSVSIGNALS \
MACHINEFLAGS = -DOS5 -DUSE_DLPI -DNOPIXRECT \
-DOLD_CURSOR -DLOGINT -DFORKCOMM -DLOCK_X_UPDATES
INLINEFLAGS =

View File

@@ -42,9 +42,7 @@ FPFLAGS =
DFLAGS = $(XFLAGS) \
$(DEBUGFLAGS) \
-DOS5 \
-DBYTESWAP -DSYSVSIGNALS \
-DOLD_CURSOR -DLOGINT \
-DOS5 -DBYTESWAP -DOLD_CURSOR -DLOGINT \
-DNOPIXRECT -DFORKCOMM -DLOCK_X_UPDATES \
-DUSE_DLPI \
-DRELEASE=351