diff --git a/bin/makefile-darwin.386-x b/bin/makefile-darwin.386-x index 296980a..bb393a6 100644 --- a/bin/makefile-darwin.386-x +++ b/bin/makefile-darwin.386-x @@ -22,7 +22,7 @@ OPTFLAGS = -O2 -g DISPOPTFLAGS = -O2 -g FPFLAGS = DEBUGFLAGS = # -DDEBUG -DOPTRACE -DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -DSTACKCHECK -DFSBCHECK -DPCTRACE diff --git a/bin/makefile-darwin.aarch64-x b/bin/makefile-darwin.aarch64-x index d753ecd..f184e93 100644 --- a/bin/makefile-darwin.aarch64-x +++ b/bin/makefile-darwin.aarch64-x @@ -22,7 +22,7 @@ OPTFLAGS = -O1 -g DISPOPTFLAGS = -O1 -g FPFLAGS = DEBUGFLAGS = # -DDEBUG -DOPTRACE -DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 diff --git a/bin/makefile-darwin.x86_64-x b/bin/makefile-darwin.x86_64-x index 8442b2b..1db5ae0 100644 --- a/bin/makefile-darwin.x86_64-x +++ b/bin/makefile-darwin.x86_64-x @@ -22,7 +22,7 @@ OPTFLAGS = -O1 -g DISPOPTFLAGS = -O1 -g FPFLAGS = DEBUGFLAGS = # -DDEBUG -DOPTRACE -DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = $(DEBUGFLAGS) -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 diff --git a/bin/makefile-freebsd.386-x b/bin/makefile-freebsd.386-x index ae78c6c..ae27673 100644 --- a/bin/makefile-freebsd.386-x +++ b/bin/makefile-freebsd.386-x @@ -22,7 +22,7 @@ OEXT = .o OPTFLAGS = -O1 -gdwarf-2 DISPOPTFLAGS = -O1 -gdwarf-2 FPFLAGS = -DFLAGS = -DFSERROR -DNEW_STORAGE -DFREEBSD -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = -DFSERROR -DNEW_STORAGE -DFREEBSD -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -D__USE_BSD diff --git a/bin/makefile-init.386 b/bin/makefile-init.386 index dd53d80..b47cd1a 100644 --- a/bin/makefile-init.386 +++ b/bin/makefile-init.386 @@ -21,7 +21,7 @@ XFLAGS = -I/opt/X11/include -DXWINDOW -DNOPIXRECT -D$(XVERSION) # $(CLXFLAGS) OPTFLAGS = -O0 -g DISPOPTFLAGS = -O0 -g FPFLAGS = -DFLAGS = -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = -DFSERROR -DNEW_STORAGE -DMACOSX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -DNOVERSION -DINIT -DTRACE -DOPTRACE diff --git a/bin/makefile-linux.386-x b/bin/makefile-linux.386-x index 95a1f5c..e4e0530 100644 --- a/bin/makefile-linux.386-x +++ b/bin/makefile-linux.386-x @@ -22,7 +22,7 @@ OEXT = .o OPTFLAGS = -O2 -g3 DISPOPTFLAGS = -O2 -g3 FPFLAGS = -DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -D__USE_BSD -DSYSVSIGNALS -DSYSVONLY diff --git a/bin/makefile-linux.armv7l-x b/bin/makefile-linux.armv7l-x index 95a1f5c..e4e0530 100644 --- a/bin/makefile-linux.armv7l-x +++ b/bin/makefile-linux.armv7l-x @@ -22,7 +22,7 @@ OEXT = .o OPTFLAGS = -O2 -g3 DISPOPTFLAGS = -O2 -g3 FPFLAGS = -DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -D__USE_BSD -DSYSVSIGNALS -DSYSVONLY diff --git a/bin/makefile-linux.x86_64-x b/bin/makefile-linux.x86_64-x index 9325615..ea5ce5d 100644 --- a/bin/makefile-linux.x86_64-x +++ b/bin/makefile-linux.x86_64-x @@ -23,7 +23,7 @@ OEXT = .o OPTFLAGS = -O2 -g3 DISPOPTFLAGS = -O2 -g3 FPFLAGS = -DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR -DUSETERMIOS \ +DFLAGS = -DFSERROR -DNEW_STORAGE -DLINUX -DAIX -DOLD_CURSOR \ -DBYTESWAP -DFORKCOMM -DNOFORN -DLOGINT $(XFLAGS) \ -DRELEASE=351 -D__USE_BSD -DSYSVSIGNALS -DSYSVONLY \ -D_GNU_SOURCE diff --git a/src/unixfork.c b/src/unixfork.c index 09c0c09..fefcbe8 100644 --- a/src/unixfork.c +++ b/src/unixfork.c @@ -22,25 +22,13 @@ static char *id = "$Id: unixfork.c,v 1.6 2001/12/26 22:17:05 sybalsky Exp $ Copy #include #include -#ifdef OS4 -#define USETERMIOS -#endif #ifdef OS5 -#define USETERMIOS #include #define FULLSLAVENAME #endif #include -#ifndef USETERMIOS -#include -#else -#if defined(MACOSX) || defined(FREEBSD) #include -#else -#include -#endif /* MACOSX or FREEBSD */ -#endif /* USETERMIOS */ #if defined(SYSVONLY) || defined(OS5) || defined(FREEBSD) || defined(MACOSX) #include @@ -110,11 +98,7 @@ int ForkUnixShell(int slot, char ltr, char numb, char *termtype, char *shellarg) char PtySlave[20]; #endif int res, PID, SlaveFD; -#ifdef USETERMIOS struct termios tio; -#else - struct sgttyb tio; -#endif /* USETERMIOS */ PID = fork(); @@ -153,22 +137,12 @@ int ForkUnixShell(int slot, char ltr, char numb, char *termtype, char *shellarg) ioctl(SlaveFD, I_PUSH, "ldterm"); #endif /* OS5 */ -#ifndef USETERMIOS - /* This is the old way we set up terminal (OS 3), using an - obsolete ioctl and wrong flags for a display. */ - ioctl(SlaveFD, TIOCGETP, (char *)&tio); - tio.sg_flags |= CRMOD; - tio.sg_flags |= ECHO; - ioctl(SlaveFD, TIOCSETP, (char *)&tio); -#else -/* Set up as basic display terminal: canonical erase, - kill processing, echo, backspace to erase, echo ctrl - chars as ^x, kill line by backspacing */ - + /* Set up as basic display terminal: canonical erase, + kill processing, echo, backspace to erase, echo ctrl + chars as ^x, kill line by backspacing */ tcgetattr(SlaveFD, &tio); tio.c_lflag |= ICANON | ECHO | ECHOE | ECHOCTL | ECHOKE; tcsetattr(SlaveFD, TCSANOW, &tio); -#endif /* USETERMIOS */ (void)dup2(SlaveFD, 0); (void)dup2(SlaveFD, 1);