[comp.os.minix] Zmodem for Minix - Patch #1

jdoss@killer.Dallas.TX.US (Joe M. Doss, Jr.) (04/19/89)

This is the first patch to the recently posted Zmodem programs for Minix.
It fixes a small problem with the Makefile and will Hopefully enable
zmodem to work under PC-Minix.  This hasn't been tested on a PC, as I
don't have one, but it should eliminate all the compiler error messages
encountered in trying to compile on a PC. (Thanks to Andy Tanenbaum for
sending the compiler's error messages)

Cut at the cut line, run the rest through sh, and copy the results to
whatever directory you have the Zmodem sources in.  Apply the patch with:

patch <zmodem.cdiff

then just type 'make'

I have also included pre-formatted man pages for the send and receive
programs for those of you who don't have access to an nroff program.

Would some of you running PC-Minix let me know if this works, please?

Good Luck!

Joe M. Doss
jdoss@killer.Dallas.TX.US

# --------------------------Cut Here--------------------
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  rz.man sz.man zmodem.cdiff
# Wrapped by jdoss@killer on Tue Apr 18 18:54:22 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'rz.man' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'rz.man'\"
else
echo shar: Extracting \"'rz.man'\" \(10644 characters\)
sed "s/^X//" >'rz.man' <<'END_OF_FILE'
X
X
X
X     RZ(1)                    UNIX 5.0 (OMEN)                    RZ(1)
X
X
X
X     NAME
X          rx, rb, rz - XMODEM, YMODEM, ZMODEM (Batch) file receive
X
X     SYNOPSIS
X          rz [- +abepqtuvy]
X          rb [- +abqtuvy]
X          rx [- abceqtuv] file
X          gz file ...
X          [-][v]rzCOMMAND
X
X     DESCRIPTION
X          This program uses error correcting protocols to receive
X          files over a dial-in serial port from a variety of programs
X          running under PC-DOS, CP/M, Unix, and other operating
X          systems.  It is invoked from a shell prompt manually, or
X          automatically as a result of an "sz file ..." command given
X          to the calling program.
X
X          While rz is smart enough to be called from cu(1), very few
X          versions of cu(1) are smart enough to allow rz to work
X          properly.  Unix flavors of Professional-YAM are available
X          for such dial-out application.
X
X
X          Rz (Receive ZMODEM) receives files with the ZMODEM batch
X          protocol.  Pathnames are supplied by the sending program,
X          and directories are made if necessary (and possible).
X          Normally, the "rz" command is automatically issued by the
X          calling ZMODEM program, but some defective ZMODEM
X          implementations may require starting rz the old fashioned
X          way.
X
X
X          Rb receives file(s) with YMODEM, accepting either standard
X          128 byte sectors or 1024 byte sectors (YAM sb -k option).
X          The user should determine when the 1024 byte block length
X          actually improves throughput without causing lost data or
X          even system crashes.
X
X          If True YMODEM (Omen Technology trademark) file information
X          (file length, etc.)  is received, the file length controls
X          the number of bytes written to the output dataset, and the
X          modify time and file mode (iff non zero) are set
X          accordingly.
X
X          If no True YMODEM file information is received, slashes in
X          the pathname are changed to underscore, and any trailing
X          period in the pathname is eliminated.  This conversion is
X          useful for files received from CP/M systems.  With YMODEM,
X          each file name is converted to lower case unless it contains
X          one or more lower case letters.
X
X
X
X
X     Page 1                                          (printed 4/18/89)
X
X
X
X
X
X
X     RZ(1)                    UNIX 5.0 (OMEN)                    RZ(1)
X
X
X
X          Rx receives a single file with XMODEM or XMODEM-1k protocol.
X          The user should determine when the 1024 byte block length
X          actually improves throughput without causing problems.  The
X          user must supply the file name to both sending and receiving
X          programs.  Up to 1023 garbage characters may be added to the
X          received file.
X
X          Gz is a shell script which calls sz to command Pro-YAM or
X          ZCOMM to transmit the specified files.  Pathnames used with
X          gz must be escaped if they have special significance to the
X          Unix shell.
X          EXAMPLE:  gz "-a C:*.c D:*.h"
X
X
X          Rz may be invoked as rzCOMMAND (with an optional leading -
X          as generated by login(1)).  For each received file, rz will
X          pipe the file to ``COMMAND filename'' where filename is the
X          name of the transmitted file with the file contents as
X          standard input.
X
X          Each file transfer is acknowledged when COMMAND exits with 0
X          status.  A non zero exit status terminates transfers.
X
X          A typical use for this form is rzrmail which calls rmail(1)
X          to post mail to the user specified by the transmitted file
X          name.  For example, sending the file "caf" from a PC-DOS
X          system to rzrmail on a Unix system would result in the
X          contents of the DOS file "caf" being mailed to user "caf".
X
X          On some Unix systems, the login directory must contain a
X          link to COMMAND as login sets SHELL=rsh which disallows
X          absolute pathnames.  If invoked with a leading ``v'', rz
X          will report progress to /tmp/rzlog.  The following entry
X          works for Unix SYS III/V:
X                     rzrmail::5:1::/bin:/usr/local/rzrmail
X          If the SHELL environment variable includes rsh or rksh
X          (restricted shell), rz will not accept absolute pathnames or
X          references to a parent directory, will not modify an
X          existing file, and removes any files received in error.
X
X          If rz is invoked with stdout and stderr to different
X          datasets, Verbose is set to 2, causing frame by frame
X          progress reports to stderr.  This may be disabled with the q
X          option.
X
X
X          The meanings of the available options are:
X
X          a    Convert files to Unix conventions by stripping carriage
X               returns and all characters beginning with the first
X               Control Z (CP/M end of file).
X          b    Binary (tell it like it is) file transfer override.
X
X
X
X     Page 2                                          (printed 4/18/89)
X
X
X
X
X
X
X     RZ(1)                    UNIX 5.0 (OMEN)                    RZ(1)
X
X
X
X          c    Request 16 bit CRC.  XMODEM file transfers default to 8
X               bit checksum.  YMODEM and ZMODEM normally use 16 bit
X               CRC.
X          D    Output file data to /dev/null; for testing.  (Unix
X               only)
X          e    Force sender to escape all control characters; normally
X               XON, XOFF, DLE, CR-@-CR, and Ctrl-X are escaped.
X          p    (ZMODEM) Protect: skip file if destination file exists.
X          q    Quiet suppresses verbosity.
X          t tim
X               Change timeout to tim tenths of seconds.
X          v    Verbose causes a list of file names to be appended to
X               /tmp/rzlog .  More v's generate more output.
X          y    Yes, clobber any existing files with the same name.
X
X     EXAMPLES
X          (Pro-YAM command)
X          <ALT-2>
X          Pro-YAM Command:  sz *.h *.c
X          (This automatically invokes rz on the connected system.)
X
X     SEE ALSO
X          ZMODEM.DOC, YMODEM.DOC, Professional-YAM, crc(omen),
X          sz(omen), usq(omen), undos(omen)
X
X          Compile time options required for various operating systems
X          are described in the source file.
X
X     NOTES
X          Sending serial data to timesharing minicomputers at
X          sustained high speeds has been known to cause lockups,
X          system halts, kernel panics, and occasional antisocial
X          behaviour.  When experimenting with high speed input to a
X          system, consider rebooting the system if the file transfers
X          are not successful, especially if the personality of the
X          system appears altered.
X
X          The Unix "ulimit" parameter must be set high enough to
X          permit large file transfers.
X
X          The TTY input buffering on some systems may not allow long
X          blocks or streaming input at high speed.  You should suspect
X          this problem when you can't send data to the Unix system at
X          high speeds using ZMODEM, YMODEM-1k or XMODEM-1k, when
X          YMODEM with 128 byte blocks works properly.  If the system's
X          tty line handling is really broken, the serial port or the
X          entire system may not survive the onslaught of long bursts
X          of high speed data.
X
X          The DSZ or Pro-YAM zmodem l numeric parameter may be set to
X          a value between 64 and 1024 to limit the burst length
X          ("zmodem pl128").
X
X
X
X     Page 3                                          (printed 4/18/89)
X
X
X
X
X
X
X     RZ(1)                    UNIX 5.0 (OMEN)                    RZ(1)
X
X
X
X          32 bit CRC code courtesy Gary S. Brown.  Directory creation
X          code from John Gilmore's PD TAR program.
X
X     BUGS
X          Calling rz from most versions of cu(1) doesn't work because
X          cu's receive process fights rz for characters from the
X          modem.
X
X          Programs that do not properly implement the specified file
X          transfer protocol may cause sz to "hang" the port for a
X          minute or two.  Every reported instance of this problem has
X          been corrected by using ZCOMM, Pro-YAM, or other program
X          with a correct implementation of the specified protocol.
X
X          Many programs claiming to support YMODEM only support XMODEM
X          with 1k blocks, and they often don't get that quite right.
X
X          Pathnames are restricted to 127 characters.  In XMODEM
X          single file mode, the pathname given on the command line is
X          still processed as described above.  The ASCII option's
X          CR/LF to NL translation merely deletes CR's; undos(omen)
X          performs a more intelligent translation.
X
X     VMS VERSION
X          The VMS version does not set the file time.
X
X          VMS C Standard I/O and RMS may interact to modify file
X          contents unexpectedly.
X
X          The VMS version does not support invocation as rzCOMMAND .
X          The current VMS version does not support XMODEM, XMODEM-1k,
X          or YMODEM.
X
X          According to the VMS documentation, the buffered input
X          routine used on the VMS version of rz introduces a delay of
X          up to one second for each protocol transaction.  This delay
X          may be significant for very short files.  Removing the
X          "#define BUFREAD" line from rz.c will eliminate this delay
X          at the expense of increased CPU utilization.
X
X          The VMS version causes DCL to generate a random off the wall
X          error message under some error conditions; this is a result
X          of the incompatibility of the VMS "exit" function with the
X          Unix/MSDOS standard.
X
X     ZMODEM CAPABILITIES
X          Rz supports incoming ZMODEM binary (-b), ASCII (-a), protect
X          (-p), clobber (-y), and append (-+) requests.  The default
X          is protect (-p) and binary (-b).
X
X          The Unix versions support ZMODEM command execution.
X
X
X
X
X     Page 4                                          (printed 4/18/89)
X
X
X
X
X
X
X     RZ(1)                    UNIX 5.0 (OMEN)                    RZ(1)
X
X
X
X     FILES
X          rz.c, crctab.c, rbsb.c, zm.c, zmodem.h Unix source files.
X
X          rz.c, crctab.c, vrzsz.c, zm.c, zmodem.h, vmodem.h,
X          vvmodem.c, VMS source files.
X
X          /tmp/rzlog stores debugging output generated with -vv option
X          (rzlog on VMS).
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X     Page 5                                          (printed 4/18/89)
X
X
X
X
END_OF_FILE
if test 10644 -ne `wc -c <'rz.man'`; then
    echo shar: \"'rz.man'\" unpacked with wrong size!
fi
# end of 'rz.man'
fi
if test -f 'sz.man' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'sz.man'\"
else
echo shar: Extracting \"'sz.man'\" \(15853 characters\)
sed "s/^X//" >'sz.man' <<'END_OF_FILE'
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X     NAME
X          sx, sb, sz - XMODEM, YMODEM, ZMODEM file send
X
X     SYNOPSIS
X          sz [-+abdefkLlNnopqTtuvyY] file ...
X          sb [-adfkqtuv] file ...
X          sx [-akqtuv] file
X          sz [-oqtv] -c COMMAND
X          sz [-oqtv] -i COMMAND
X          sz -TT
X
X     DESCRIPTION
X          Sz uses the ZMODEM, YMODEM or XMODEM error correcting
X          protocol to send one or more files over a dial-in serial
X          port to a variety of programs running under PC-DOS, CP/M,
X          Unix, VMS, and other operating systems.
X
X          While rz is smart enough to be called from cu(1), very few
X          versions of cu(1) are smart enough to allow sz to work
X          properly.  Unix flavors of Professional-YAM are available
X          for such dial-out application.
X
X
X          Sz sends one or more files with ZMODEM protocol.
X
X          ZMODEM greatly simplifies file transfers compared to XMODEM.
X          In addition to a friendly user interface, ZMODEM provides
X          Personal Computer and other users an efficient, accurate,
X          and robust file transfer method.
X
X          ZMODEM provides complete END-TO-END data integrity between
X          application programs.  ZMODEM's 32 bit CRC catches errors
X          that sneak into even the most advanced networks.
X
X          Advanced file management features include AutoDownload
X          (Automatic file Download initiated without user
X          intervention), Display of individual and total file lengths
X          and transmission time estimates, Crash Recovery, selective
X          file transfers, and preservation of exact file date and
X          length.
X
X          Output from another program may be piped to sz for
X          transmission by denoting standard input with "-":
X                                  ls -l | sz -
X          The program output is transmitted with the filename sPID.sz
X          where PID is the process ID of the sz program.  If the
X          environment variable ONAME is set, that is used instead.  In
X          this case, the Unix command:
X                           ls -l | ONAME=con sz -ay -
X          will send a "file" to the PC-DOS console display.  The -y
X          option instructs the receiver to open the file for writing
X          unconditionally.  The -a option causes the receiver to
X
X
X
X     Page 1                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X          convert Unix newlines to PC-DOS carriage returns and
X          linefeeds.
X
X
X          Sb batch sends one or more files with YMODEM or ZMODEM
X          protocol.  The initial ZMODEM initialization is not sent.
X          When requested by the receiver, sb supports YMODEM-g with
X          "cbreak" tty mode, XON/XOFF flow control, and interrupt
X          character set to CAN (^X).  YMODEM-g (Professional-YAM g
X          option) increases throughput over error free channels
X          (direct connection, X.PC, etc.)  by not acknowledging each
X          transmitted sector.
X
X          On Unix systems, additional information about the file is
X          transmitted.  If the receiving program uses this
X          information, the transmitted file length controls the exact
X          number of bytes written to the output dataset, and the
X          modify time and file mode are set accordingly.
X
X
X          Sx sends a single file with XMODEM or XMODEM-1k protocol
X          (sometimes incorrectly called "ymodem").  The user must
X          supply the file name to both sending and receiving programs.
X
X          Iff sz is invoked with $SHELL set and iff that variable
X          contains the string rsh or rksh (restricted shell), sz
X          operates in restricted mode.  Restricted mode restricts
X          pathnames to the current directory and PUBDIR (usually
X          /usr/spool/uucppublic) and/or subdirectories thereof.
X
X
X          The fourth form sends a single COMMAND to a ZMODEM receiver
X          for execution.  Sz exits with the COMMAND return value.  If
X          COMMAND includes spaces or characters special to the shell,
X          it must be quoted.
X
X
X          The fifth form sends a single COMMAND to a ZMODEM receiver
X          for execution.  Sz exits as soon as the receiver has
X          correctly received the command, before it is executed.
X
X
X          The sixth form (sz -TT) attempts to output all 256 code
X          combinations to the terminal.  In you are having difficulty
X          sending files, this command lets you see which character
X          codes are being eaten by the operating system.
X
X
X          If sz is invoked with stdout and stderr to different
X          datasets, Verbose is set to 2, causing frame by frame
X          progress reports to stderr.  This may be disabled with the q
X          option.
X
X
X
X     Page 2                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X          The meanings of the available options are:
X
X
X          +    Instruct the receiver to append transmitted data to an
X               existing file (ZMODEM only).
X          a    Convert NL characters in the transmitted file to CR/LF.
X               This is done by the sender for XMODEM and YMODEM, by
X               the receiver for ZMODEM.
X          b    (ZMODEM) Binary override: transfer file without any
X               translation.
X          c COMMAND
X               Send COMMAND to the receiver for execution, return with
X               COMMAND's exit status.
X          d    Change all instances of "." to "/" in the transmitted
X               pathname.  Thus, C.omenB0000 (which is unacceptable to
X               MSDOS or CP/M) is transmitted as C/omenB0000.  If the
X               resultant filename has more than 8 characters in the
X               stem, a "." is inserted to allow a total of eleven.
X          e    Escape all control characters; normally XON, XOFF, DLE,
X               CR-@-CR, and Ctrl-X are escaped.
X          f    Send Full pathname.  Normally directory prefixes are
X               stripped from the transmitted filename.
X          i COMMAND
X               Send COMMAND to the receiver for execution, return
X               Immediately upon the receiving program's successful
X               recption of the command.
X          k    (XMODEM/YMODEM) Send files using 1024 byte blocks
X               rather than the default 128 byte blocks.  1024 byte
X               packets speed file transfers at high bit rates.
X               (ZMODEM streams the data for the best possible
X               throughput.)
X          L N  Use ZMODEM sub-packets of length N.  A larger N (32 <=
X               N <= 1024) gives slightly higher throughput, a smaller
X               N speeds error recovery.  The default is 128 below 300
X               baud, 256 above 300 baud, or 1024 above 2400 baud.
X          l N  Wait for the receiver to acknowledge correct data every
X               N (32 <= N <= 1024) characters.  This may be used to
X               avoid network overrun when XOFF flow control is
X               lacking.
X          n    (ZMODEM) Send each file if destination file does not
X               exist.  Overwrite destination file if source file is
X               newer than the destination file.
X          N    (ZMODEM) Send each file if destination file does not
X               exist.  Overwrite destination file if source file is
X               newer or longer than the destination file.
X          o    (ZMODEM) Disable automatic selection of 32 bit CRC.
X          p    (ZMODEM) Protect existing destination files by skipping
X               transfer if the destination file exists.
X          q    Quiet suppresses verbosity.
X          r    (ZMODEM) Resume interrupted file transfer.  If the
X               source file is longer than the destination file, the
X
X
X
X     Page 3                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X               transfer commences at the offset in the source file
X               that equals the length of the destination file.
X          t tim
X               Change timeout to tim tenths of seconds.
X          u    Unlink the file after successful transmission.
X          w N  Limit the transmit window size to N bytes (ZMODEM).
X          v    Verbose causes a list of file names to be appended to
X               /tmp/szlog .  More v's generate more output.
X          y    Instruct a ZMODEM receiving program to overwrite any
X               existing file with the same name.
X          Y    Instruct a ZMODEM receiving program to overwrite any
X               existing file with the same name, and to skip any
X               source files that do have a file with the same pathname
X               on the destination system.
X
X     EXAMPLES
X          ZMODEM File Transfer (Unix to DSZ/ZCOMM/Professional-YAM)
X          % sz -a *.c
X          This single command transfers all .c files in the current
X          Unix directory with conversion (-a) to end of line
X          conventions appropriate to the receiving environment.  With
X          ZMODEM AutoDownload enabled, Professional-YAM  and ZCOMM
X          will automatically recieve the files after performing a
X          security check.
X
X          % sz -Yan *.c *.h
X          Send only the .c and .h files that exist on both systems,
X          and are newer on the sending system than the corresponding
X          version on the receiving system, converting Unix to DOS text
X          format.
X          $ sz -\Yan file1.c file2.c file3.c foo.h baz.h (Reg.)(for
X          VMS)
X
X          ZMODEM Command Download (Unix to Professional-YAM)
X           cpszall:all
X              sz -c "c:;cd /yam/dist"
X              sz -ya $(YD)/*.me
X              sz -yqb y*.exe
X              sz -c "cd /yam"
X              sz -i "!insms"
X          This Makefile fragment uses sz to issue commands to
X          Professional-YAM to change current disk and directory.
X          Next, sz transfers the .me files from the $YD directory,
X          commanding the receiver to overwrite the old files and to
X          convert from Unix end of line conventions to PC-DOS
X          conventions.  The third line transfers some .exe files.  The
X          fourth and fifth lines command Pro-YAM to change directory
X          and execute a PC-DOS batch file insms . Since the batch file
X          takes considerable time, the -i form is used to allow sz to
X          exit immediately.
X
X          XMODEM File Transfer (Unix to Crosstalk)
X
X
X
X     Page 4                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X          % sx -a foo.c
X          ESC
X          rx foo.c
X          The above three commands transfer a single file from Unix to
X          a PC and Crosstalk with sz translating Unix newlines to DOS
X          CR/LF.  This combination is much slower and far less
X          reliable than ZMODEM.
X
X     ERROR MESSAGES
X          "Caught signal 99" indicates the program was not properly
X          compiled, refer to "bibi(99)" in rbsb.c for details.
X
X     SEE ALSO
X          rz(omen), ZMODEM.DOC, YMODEM.DOC, Professional-YAM,
X          crc(omen), sq(omen), todos(omen), tocpm(omen), tomac(omen),
X          yam(omen)
X
X          Compile time options required for various operating systems
X          are described in the source file.
X
X     VMS VERSION
X          The VMS version does not support wild cards.  Because of VMS
X          DCL, upper case option letters muse be represented by \
X          proceding the letter.
X
X          The current VMS version does not support XMODEM, XMODEM-1k,
X          or YMODEM.
X
X          VMS C Standard I/O and RMS may interact to modify the file
X          contents.
X
X     FILES
X          32 bit CRC code courtesy Gary S. Brown.
X
X          sz.c, crctab.c, rbsb.c, zm.c, zmodem.h Unix source files
X
X          sz.c, crctab.c, vrzsz.c, zm.c, zmodem.h, vmodem.h,
X          vvmodem.c, VMS source files.
X
X          /tmp/szlog stores debugging output (sz -vv) (szlog on VMS).
X
X     TESTING FEATURE
X          The command "sz -T file" exercises the Attn sequence error
X          recovery by commanding errors with unterminated packets.
X          The receiving program should complain five times about
X          binary data packets being too long.  Each time sz is
X          interrupted, it should send a ZDATA header followed by
X          another defective packet.  If the receiver does not detect
X          five long data packets, the Attn sequence is not
X          interrupting the sender, and the Myattn string in sz.c must
X          be modified.
X
X
X
X
X     Page 5                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X          After 5 packets, sz stops the "transfer" and prints the
X          total number of characters "sent" (Tcount).  The difference
X          between Tcount and 5120 represents the number of characters
X          stored in various buffers when the Attn sequence is
X          generated.
X
X     BUGS
X          Calling sz from most versions of cu(1) doesn't work because
X          cu's receive process fights sz for characters from the
X          modem.
X
X          On at least one BSD system, sz would hang or exit when it
X          got within a few kilobytes of the end of file.  Using the
X          "-w 8192" flag fixed the problem.  The real cause is
X          unknown, perhaps a bug in the kernel TTY output routines.
X
X          Programs that do not properly implement the specified file
X          transfer protocol may cause sz to "hang" the port for a
X          minute or two.  This problem is corrected by using ZCOMM,
X          Pro-YAM, or other program with a correct implementation of
X          the specified protocol.
X
X          Many programs claiming to support YMODEM only support XMODEM
X          with 1k blocks, and they often don't get that quite right.
X
X          XMODEM transfers add up to 127 garbage bytes per file.
X          XMODEM-1k and YMODEM-1k transfers use 128 byte blocks to
X          avoid extra padding.
X
X          YMODEM programs use the file length transmitted at the
X          beginning of the transfer to prune the file to the correct
X          length; this may cause problems with source files that grow
X          during the course of the transfer.  This problem does not
X          pertain to ZMODEM transfers, which preserve the exact file
X          length unconditionally.
X
X          Most ZMODEM options are merely passed to the receiving
X          program; some do not implement all these options.
X
X          Circular buffering and a ZMODEM sliding window should be
X          used when input is from pipes instead of acknowledging
X          frames each 1024 bytes.  If no files can be opened, sz sends
X          a ZMODEM command to echo a suitable complaint; perhaps it
X          should check for the presence of at least one accessible
X          file before getting hot and bothered.  The test mode leaves
X          a zero length file on the receiving system.
X
X          A few high speed modems have a firmware bug that drops
X          characters when the direction of high speed transmissson is
X          reversed.  The environment variable ZNULLS may be used to
X          specify the number of nulls to send before a ZDATA frame.
X          Values of 101 for a 4.77 mHz PC and 124 for an AT are
X
X
X
X     Page 6                                          (printed 4/18/89)
X
X
X
X
X
X
X     SZ(1)                    UNIX 5.0 (OMEN)                    SZ(1)
X
X
X
X          typical.
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X     Page 7                                          (printed 4/18/89)
X
X
X
END_OF_FILE
if test 15853 -ne `wc -c <'sz.man'`; then
    echo shar: \"'sz.man'\" unpacked with wrong size!
fi
# end of 'sz.man'
fi
if test -f 'zmodem.cdiff' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'zmodem.cdiff'\"
else
echo shar: Extracting \"'zmodem.cdiff'\" \(1749 characters\)
sed "s/^X//" >'zmodem.cdiff' <<'END_OF_FILE'
X*** orig/Makefile	Thu Apr 14 18:41:17 1989
X--- Makefile	Thu Apr 14 18:38:59 1989
X***************
X*** 5,11 ****
X  all: rz sz
X  
X  CC = cc
X! TMPDIR=/spool/tmp
X  CFLAGS=-O -T$(TMPDIR) -DV7
X  # destination for calling from cu
X  BIN=/usr/lib
X--- 5,16 ----
X  all: rz sz
X  
X  CC = cc
X! 
X! # if you don't have enough room in /tmp to compile, change this to a larger
X! #  directory
X! TMPDIR=/tmp
X! # TMPDIR=/usr/tmp
X! 
X  CFLAGS=-O -T$(TMPDIR) -DV7
X  # destination for calling from cu
X  BIN=/usr/lib
X*** orig/rbsb.c	Thu Apr 14 18:45:45 1989
X--- rbsb.c	Thu Apr 14 18:20:50 1989
X***************
X*** 71,77 ****
X  } speeds[] = {
X  	110,	B110,
X  	300,	B300,
X! 	600,	B600,
X  	1200,	B1200,
X  	2400,	B2400,
X  	4800,	B4800,
X--- 71,79 ----
X  } speeds[] = {
X  	110,	B110,
X  	300,	B300,
X! #ifdef B600
X! 	600,	B600,
X! #endif
X  	1200,	B1200,
X  	2400,	B2400,
X  	4800,	B4800,
X***************
X*** 246,257 ****
X  		tch.t_intrc = Zmodem ? 03:030;	/* Interrupt char */
X  #endif
X  #ifdef ODDP
X! 		tty.sg_flags |= (ODDP|EVENP|CBREAK);
X! 		tty.sg_flags &= ~(ALLDELAY|CRMOD|ECHO|LCASE);
X! #else
X! 		tty.sg_flags |= CBREAK;
X! 		tty.sg_flags &= ~(CRMOD|ECHO);
X! #endif
X  		ioctl(iofd, TIOCSETP, &tty);
X  		ioctl(iofd, TIOCSETC, &tch);
X  #ifdef LLITOUT
X--- 248,274 ----
X  		tch.t_intrc = Zmodem ? 03:030;	/* Interrupt char */
X  #endif
X  #ifdef ODDP
X! 		tty.sg_flags |= ODDP;
X! #endif
X! #ifdef EVENP
X! 		tty.sg_flags |= EVENP;
X! #endif
X! #ifdef CBREAK
X! 		tty.sg_flags |= CBREAK;
X! #endif
X! #ifdef ALLDELAY
X! 		tty.sg_flags &= ~ALLDELAY;
X! #endif
X! #ifdef CRMOD
X! 		tty.sg_flags &= ~CRMOD;
X! #endif
X! #ifdef ECHO
X! 		tty.sg_flags &= ~ECHO;
X! #endif
X! #ifdef LCASE
X! 		tty.sg_flags &= ~LCASE;
X! #endif
X! 
X  		ioctl(iofd, TIOCSETP, &tty);
X  		ioctl(iofd, TIOCSETC, &tch);
X  #ifdef LLITOUT
END_OF_FILE
if test 1749 -ne `wc -c <'zmodem.cdiff'`; then
    echo shar: \"'zmodem.cdiff'\" unpacked with wrong size!
fi
# end of 'zmodem.cdiff'
fi
echo shar: End of shell archive.
exit 0