?? faspatch
字號:
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 CFLAGS3) 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;< }< #else1778d1753< #endif--------------------- snip -------------------------Sorry for this inconvenient format, but I don't have a better diff installedyet.END_OF_FILEif test 1351 -ne `wc -c <'FASPATCH'`; then echo shar: \"'FASPATCH'\" unpacked with wrong size!fi# end of 'FASPATCH'fiif test -f 'Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'Makefile'\"elseecho 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## directoriesBINDIR = /usr/local/bin# programsCC=gccCFLAGS= -O -g -DSYSV #-DTEST LDFLAGS= INSTALL = cpADMINS = CAVEAT COPYING PORTING REQUIREMENTS FASPATCH HEADERS= vfax.h version.h patchlevel.hSRCS= 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) MakefileSHAR2 = $(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.call: vfs vfaxvfs: $(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.shinstall: all strip vfax strip vfs $(INSTALL) vfax $(BINDIR) $(INSTALL) vfs $(BINDIR)clean: rm -f *~ core *.o vfs vfaxdepend: $(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.hdial.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/unistd.hdial.o: vfax.h version.hdir.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hdir.o: /usr/include/sys/fcntl.h /usr/include/dirent.hdir.o: /usr/include/sys/dirent.h /usr/include/sys/time.hdir.o: /usr/include/strings.h /usr/include/string.h vfax.h version.hfax.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hfax.o: /usr/include/sys/fcntl.h vfax.h version.hinit.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hinit.o: /usr/include/sys/fcntl.h /usr/include/setjmp.h /usr/include/signal.hinit.o: /usr/include/sys/signal.h vfax.h version.hmail.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/errno.hmail.o: /usr/include/sys/errno.h vfax.h version.hplay.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.hplay.o: /usr/include/unistd.h /usr/include/termio.h /usr/include/sys/termio.hplay.o: vfax.h version.hprocess.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hprocess.o: /usr/include/sys/fcntl.h vfax.h version.hqueue.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hqueue.o: /usr/include/sys/fcntl.h vfax.h version.hrcv.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hrcv.o: /usr/include/sys/fcntl.h /usr/include/unistd.h /usr/include/signal.hrcv.o: /usr/include/sys/signal.h vfax.h version.hread.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hread.o: /usr/include/sys/fcntl.h vfax.h version.hrecmsg.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.hrecmsg.o: /usr/include/termio.h /usr/include/sys/termio.hrecmsg.o: /usr/include/signal.h /usr/include/sys/signal.h vfax.h version.hrecord.o: /usr/include/stdio.h vfax.h version.hresponse.o: /usr/include/stdio.h /usr/include/sys/types.hresponse.o: /usr/include/fcntl.h /usr/include/sys/fcntl.hresponse.o: /usr/include/termio.h /usr/include/sys/termio.hresponse.o: /usr/include/ctype.h vfax.h version.hsend.o: /usr/include/stdio.h /usr/include/sys/types.hsend.o: /usr/include/sys/termio.h /usr/include/fcntl.hsend.o: /usr/include/sys/fcntl.h /usr/include/signal.hsend.o: /usr/include/sys/signal.h /usr/include/setjmp.h /usr/include/unistd.hsend.o: /usr/include/pwd.h /usr/include/sys/ipc.h /usr/include/sys/msg.hsend.o: /usr/include/errno.h /usr/include/sys/errno.h vfax.h version.hsignal.o: /usr/include/stdio.h /usr/include/fcntl.h /usr/include/sys/fcntl.hsignal.o: /usr/include/termio.h /usr/include/sys/termio.hsignal.o: /usr/include/signal.h /usr/include/sys/signal.hsignal.o: /usr/include/setjmp.h vfax.h version.hsnd.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hsnd.o: /usr/include/sys/fcntl.h /usr/include/unistd.h vfax.h version.hspooler.o: /usr/include/stdio.h /usr/include/sys/types.hspooler.o: /usr/include/sys/termio.h /usr/include/fcntl.hspooler.o: /usr/include/sys/fcntl.h /usr/include/sys/ioctl.hspooler.o: /usr/include/unistd.h /usr/include/dirent.hspooler.o: /usr/include/sys/dirent.h /usr/include/sys/time.hspooler.o: /usr/include/setjmp.h /usr/include/signal.hspooler.o: /usr/include/sys/signal.h /usr/include/sys/ipc.hspooler.o: /usr/include/sys/msg.h /usr/include/errno.hspooler.o: /usr/include/sys/errno.h vfax.h version.h patchlevel.htty.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/sys/time.htty.o: /usr/include/sys/errno.h /usr/include/signal.htty.o: /usr/include/sys/signal.h /usr/include/fcntl.htty.o: /usr/include/sys/fcntl.h /usr/include/termio.htty.o: /usr/include/sys/termio.h vfax.h version.httyio.o: /usr/include/stdio.h /usr/include/sys/types.httyio.o: /usr/include/sys/time.h /usr/include/sys/errno.httyio.o: /usr/include/signal.h /usr/include/sys/signal.h /usr/include/fcntl.httyio.o: /usr/include/sys/fcntl.h /usr/include/sgtty.h vfax.h version.hwrite.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/fcntl.hwrite.o: /usr/include/sys/fcntl.h /usr/include/varargs.h vfax.h version.h
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -