This is the patch for fas.

1) change /usr/include/sys/termio.h 
	add following lines (or similar)
	in section CONTROL MODES

		#define REENABLE 0020000

	Use a free number, or an normally unused cmode. I use the coding
	for XMT1EN.

	add to 

		#define TIOC    ('T'<<8)
		#define TCGETA  (TIOC|1)
		   -""-
		#define TCFLSH  (TIOC|7)

	the define 

		#define TCRTS   (TIOC|9)
	
2) add a -DSPECIALRTS to the CFLAGS

3) use the following diff to change fas.c

---------------------- snip --------------------
1218,1233d1217
< #ifdef SPECIALRTS
< 		case TCRTS: /* RTS drop rise call */
< 			if(arg3.iarg == 0)
< 			  {
< 			    fip->mcr &= ~fip->flow.m.hc;
< 			    fas_first_outb (fip, MDM_CTL_PORT, fip->mcr);
< 			    fip->flow_flags.s &= ~FF_HDX_STARTED;
< 			  } 
< 			else
< 			  {
< 			    fip->mcr |= fip->flow.m.hc;
< 			    fas_first_outb (fip, MDM_CTL_PORT, fip->mcr);
< 			    fip->flow_flags.s |= FF_HDX_STARTED;
< 			  }
< 			break;
< #endif		      
1769,1776d1752
< #if defined (REENABLE)
< 				if (!(fip->cflag & REENABLE))
< 				  (void) ttyflush (ttyp, FREAD | FWRITE);
< 				else {
< 				  /* if reenable, set fake carrier */
< 				  fip->tty->t_state |= CARR_ON;
< 				}
< #else
1778d1753
< #endif
--------------------- snip -------------------------

Sorry for this inconvenient format, but I don't have a better diff installed
yet.END_OF_FILE
if test 1351 -ne `wc -c <'FASPATCH'`; then
    echo shar: \"'FASPATCH'\" unpacked with wrong size!
fi
# end of 'FASPATCH'
fi
if test -f 'Makefile' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'Makefile'\"
else
echo shar: Extracting \"'Makefile'\" \(7081 characters\)
sed "s/^X//" >'Makefile' <<'END_OF_FILE'
#
# Makefile for vfax. (c) Uwe C. Schroeder, Germany
#
#
# (c) 1992 Uwe C. Schroeder, Anwendungssysteme , Augsburg, Germany
#
# 
# Permission to use, copy, and modify this software and its
# documentation for non comercial  purpose is hereby granted 
# without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of Uwe C. Schroeder not be used in
# advertising or publicity pertaining to distribution of the software without
# specific, written prior permission.  Uwe Schroeder makes no representations
# about the suitability of this software for any purpose.  It is provided
# "as is" without express or implied warranty.
# This software may not be sold or distributed with commercial products
# ( this includes distribution "for users convenience" ) without prior
# written permission by the author.
#
# UWE SCHROEDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL UWE SCHROEDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
#
# This is a alpha release, which means, that there are still several
# known bugs.
#
# Please report bugs to:
#
#                     usys@phoenix.abg.sub.org
#

# directories
BINDIR = /usr/local/bin

# programs
CC=gcc
CFLAGS= -O -g -DSYSV #-DTEST 
LDFLAGS= 
INSTALL = cp

ADMINS = CAVEAT COPYING PORTING REQUIREMENTS FASPATCH 

HEADERS= vfax.h version.h patchlevel.h

SRCS= debug.c dial.c dir.c fax.c init.c mail.c play.c process.c queue.c \
	rcv.c read.c recmsg.c record.c response.c send.c signal.c snd.c \
	spooler.c tty.c ttyio.c write.c 

OBJS= debug.o dial.o dir.o fax.o init.o mail.o play.o process.o queue.o \
	rcv.o read.o recmsg.o record.o response.o signal.o snd.o \
	tty.o ttyio.o write.o 

SHAR1 = $(ADMINS) Makefile

SHAR2 = $(HEADERS) debug.c dial.c dir.c fax.c init.c mail.c play.c \
	process.c queue.c rcv.c read.c 

SHAR3 = recmsg.c record.c response.c send.c signal.c snd.c \
        spooler.c tty.c ttyio.c write.c

all: vfs vfax

vfs: $(OBJS) spooler.o
	$(CC) $(LDFLAGS) -o vfs spooler.o $(OBJS)

vfax: $(OBJS) $(SRCS) send.o 
	$(CC) $(LDFLAGS) -o vfax send.o queue.o $(OBJS) $(LIBS)

# testline program 
tl: tl.c tl.o $(OBJS)
	$(CC) $(LDFLAGS) -o tl tl.o $(OBJS)

shar: $(SHAR1) $(SHAR2) $(SHAR3)
	shar $(SHAR1) > vfax1o3v1.0.sh
	shar $(SHAR2) > vfax2o3v1.0.sh
	shar $(SHAR3) > vfax3o3v1.0.sh

install: all
	strip vfax
	strip vfs
	$(INSTALL) vfax $(BINDIR)
	$(INSTALL) vfs $(BINDIR)

clean:
	rm -f *~ core *.o vfs vfax

depend: $(SRCS) $(HEADERS)
	makedepend $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.

debug.o: /usr/include/stdio.h /usr/include/varargs.h vfax.h version.h
dial.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/unistd.h
dial.o: vfax.h version.h
dir.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
dir.o: /usr/include/sys/fcntl.h /usr/include/dirent.h
dir.o: /usr/include/sys/dirent.h /usr/include/sys/time.h
dir.o: /usr/include/strings.h /usr/include/string.h vfax.h version.h
fax.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
fax.o: /usr/include/sys/fcntl.h vfax.h version.h
init.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
init.o: /usr/include/sys/fcntl.h /usr/include/setjmp.h /usr/include/signal.h
init.o: /usr/include/sys/signal.h vfax.h version.h
mail.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/errno.h
mail.o: /usr/include/sys/errno.h vfax.h version.h
play.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.h
play.o: /usr/include/unistd.h /usr/include/termio.h /usr/include/sys/termio.h
play.o: vfax.h version.h
process.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
process.o: /usr/include/sys/fcntl.h vfax.h version.h
queue.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
queue.o: /usr/include/sys/fcntl.h vfax.h version.h
rcv.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
rcv.o: /usr/include/sys/fcntl.h /usr/include/unistd.h /usr/include/signal.h
rcv.o: /usr/include/sys/signal.h vfax.h version.h
read.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
read.o: /usr/include/sys/fcntl.h vfax.h version.h
recmsg.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.h
recmsg.o: /usr/include/termio.h /usr/include/sys/termio.h
recmsg.o: /usr/include/signal.h /usr/include/sys/signal.h vfax.h version.h
record.o: /usr/include/stdio.h vfax.h version.h
response.o: /usr/include/stdio.h /usr/include/sys/types.h
response.o: /usr/include/fcntl.h /usr/include/sys/fcntl.h
response.o: /usr/include/termio.h /usr/include/sys/termio.h
response.o: /usr/include/ctype.h vfax.h version.h
send.o: /usr/include/stdio.h /usr/include/sys/types.h
send.o: /usr/include/sys/termio.h /usr/include/fcntl.h
send.o: /usr/include/sys/fcntl.h /usr/include/signal.h
send.o: /usr/include/sys/signal.h /usr/include/setjmp.h /usr/include/unistd.h
send.o: /usr/include/pwd.h /usr/include/sys/ipc.h /usr/include/sys/msg.h
send.o: /usr/include/errno.h /usr/include/sys/errno.h vfax.h version.h
signal.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.h
signal.o: /usr/include/termio.h /usr/include/sys/termio.h
signal.o: /usr/include/signal.h /usr/include/sys/signal.h
signal.o: /usr/include/setjmp.h vfax.h version.h
snd.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
snd.o: /usr/include/sys/fcntl.h /usr/include/unistd.h vfax.h version.h
spooler.o: /usr/include/stdio.h /usr/include/sys/types.h
spooler.o: /usr/include/sys/termio.h /usr/include/fcntl.h
spooler.o: /usr/include/sys/fcntl.h /usr/include/sys/ioctl.h
spooler.o: /usr/include/unistd.h /usr/include/dirent.h
spooler.o: /usr/include/sys/dirent.h /usr/include/sys/time.h
spooler.o: /usr/include/setjmp.h /usr/include/signal.h
spooler.o: /usr/include/sys/signal.h /usr/include/sys/ipc.h
spooler.o: /usr/include/sys/msg.h /usr/include/errno.h
spooler.o: /usr/include/sys/errno.h vfax.h version.h patchlevel.h
tty.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/sys/time.h
tty.o: /usr/include/sys/errno.h /usr/include/signal.h
tty.o: /usr/include/sys/signal.h /usr/include/fcntl.h
tty.o: /usr/include/sys/fcntl.h /usr/include/termio.h
tty.o: /usr/include/sys/termio.h vfax.h version.h
ttyio.o: /usr/include/stdio.h /usr/include/sys/types.h
ttyio.o: /usr/include/sys/time.h /usr/include/sys/errno.h
ttyio.o: /usr/include/signal.h /usr/include/sys/signal.h /usr/include/fcntl.h
ttyio.o: /usr/include/sys/fcntl.h /usr/include/sgtty.h vfax.h version.h
write.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.h
write.o: /usr/include/sys/fcntl.h /usr/include/varargs.h vfax.h version.h
