diff options
Diffstat (limited to 'net/ztelnet/files/patch-at')
-rw-r--r-- | net/ztelnet/files/patch-at | 109 |
1 files changed, 79 insertions, 30 deletions
diff --git a/net/ztelnet/files/patch-at b/net/ztelnet/files/patch-at index ba30e79e98eb..afe056b4bd6f 100644 --- a/net/ztelnet/files/patch-at +++ b/net/ztelnet/files/patch-at @@ -1,31 +1,80 @@ -diff -uNr ../ztelnet/zmodem/rz.h ./zmodem/rz.h ---- ../ztelnet/zmodem/rz.h Mon Apr 24 14:21:57 1995 -+++ ./zmodem/rz.h Thu Jan 1 00:00:00 1970 -@@ -1,27 +0,0 @@ --#ifndef STATIC --#define STATIC static --#endif -- --STATIC void bibi(int n); --int rz(int argc, char *argv[]); --STATIC usage(void); --STATIC wcreceive(int argc, char **argp); --STATIC wcrxpn(char *rpn); --STATIC wcrx(void); --STATIC wcgetsec(char *rxbuf, int maxtime); --STATIC procheader(char *name); --STATIC openit(char *name, char *openmode); --STATIC make_dirs(register char *pathname); --STATIC putsec(char *buf, register n); --STATIC char *substr(register char *s, register char *t); --STATIC chkinvok(char *s); --STATIC checkpath(char *name); --STATIC void ackbibi(void); --STATIC tryz(void); --STATIC rzfiles(void); --STATIC rzfile(void); --STATIC closeit(void); --STATIC sys2(register char *s); --STATIC exec2(register char *s); --STATIC init_rz(void); +diff -uNr --exclude=*.orig work.old/ztelnet/zmodem/rz.c work/ztelnet/zmodem/rz.c +--- work.old/ztelnet/zmodem/rz.c Mon Apr 24 23:28:22 1995 ++++ work/ztelnet/zmodem/rz.c Tue Jun 20 22:58:33 2000 +@@ -1,5 +1,8 @@ +-#define STATIC static - ++/*------Appended by yongari------*/ ++#define V7 ++#define NFGVMIN ++/*-------------------------------*/ ++#define STATIC static + #define VERSION "3.25 2-11-95" + #define PUBDIR "/usr/spool/uucppublic" + +@@ -82,6 +85,27 @@ + #include <errno.h> + extern int errno; + ++/*-----Appended by yongari to shut up compiler------*/ ++STATIC usage(); ++STATIC wcreceive(); ++STATIC wcrxpn(); ++STATIC wcrx(); ++STATIC wcgetsec(); ++STATIC procheader(); ++STATIC openit(); ++STATIC make_dirs(); ++STATIC putsec(); ++STATIC chkinvok(); ++STATIC checkpath(); ++STATIC tryz(); ++STATIC rzfiles(); ++STATIC rzfile(); ++STATIC closeit(); ++STATIC sys2(); ++STATIC exec2(); ++STATIC init_rz(); ++/*--------------------------------------------------*/ ++ + #define OK 0 + #define FALSE 0 + #define TRUE 1 +@@ -195,10 +219,8 @@ + + #include "zm.c" + #include "zmr.c" +-STATIC int tryzhdrtype=ZRINIT; /* Header type to send corresponding to Last rx close */ + +-/* PMS */ +-#include "rz.h" ++STATIC int tryzhdrtype=ZRINIT; /* Header type to send corresponding to Last rx close */ + + /* called by signal interrupt or terminate to clean things up */ + STATIC void +@@ -308,6 +330,7 @@ + fflush(stdout); + if(exitcode) + return(exitcode); ++#define sleep(x) + #ifndef REGISTERED + /* Removing or disabling this code without registering is theft */ + if (!Usevhdrs) { +@@ -316,6 +339,7 @@ + sleep(10); + } + #endif ++#undef sleep + return(0); + } + +@@ -339,8 +363,7 @@ + fprintf(stderr,"Copyright 1993 Omen Technology INC All Rights Reserved\n"); + fprintf(stderr, + "See rz.doc for option descriptions and licensing information.\n\n"); +- fprintf(stderr,"Ported into telnet by Heo, Junhyeok, 1994.3.28\n"); +- fprintf(stderr,"Linux porting by Park Myeong Seok, 1995.4.23\n"); ++ fprintf(stderr,"Ported into telnet by Heo, Junhyeok 1994.3.28\n"); + Exit(2); + } + |