📄 ckcmai.c
字号:
#define EDITDATE "10 Apr 2004" /* Update these with each edit */#define EDITNDATE "20040410" /* Keep them in sync *//* Sat Apr 10 12:05:49 2004 *//* ckcsym.h is used for for defining symbols that normally would be defined using -D or -d on the cc command line, for use with compilers that don't support this feature. Must be before any tests for preprocessor symbols.*/#include "ckcsym.h"/* Consolidated program version information (for UNIX also see ckuver.h). See makever() below for how they are used.*//* #ifdef COMMENT */ /* Uncomment this for test version */#ifndef OS2#ifndef BETATEST#define BETATEST#endif /* BETATEST */#endif /* OS2 *//* #endif */ /* COMMENT */#ifdef BETATEST#ifdef OS2#ifdef __DATE__#define BETADATE#endif /* __DATE__ */#endif /* OS2 */#endif /* BETATEST */#ifndef MAC/* Note: initialize ck_s_test to "" if this is not a test version. Use (*ck_s_test != '\0') to decide whether to print test-related messages.*/#ifndef BETATEST#ifndef OS2 /* UNIX, VMS, etc... (i.e. C-Kermit) */char *ck_s_test = ""; /* "Dev","Alpha","Beta","RC", or "" */char *ck_s_tver = ""; /* Test version number or "" */#else /* OS2 */char *ck_s_test = ""; /* (i.e. K95) */char *ck_s_tver = "";#endif /* OS2 */#elsechar *ck_s_test = ""; /* Development */char *ck_s_tver = "";#endif /* BETATEST */#else /* MAC */char *ck_s_test = "Pre-Alpha"; /* Mac Kermit is always a test... */char *ck_s_tver = "";#endif /* MAC */#ifdef BETADATE /* Date of this version or edit */char *ck_s_date = __DATE__; /* Compilation date */#elsechar *ck_s_date = EDITDATE; /* See top */#endif /* BETADATE */char *buildid = EDITNDATE; /* See top */#ifdef UNIXstatic char sccsid[] = "@(#)C-Kermit 8.0.211";#endif /* UNIX */char *ck_s_ver = "8.0.211"; /* C-Kermit version string */long ck_l_ver = 800211L; /* C-Kermit version number */#ifdef OS2char *ck_s_xver = "2.2.0"; /* Product-specific version string */long ck_l_xver = 2200L; /* Product-specific version number */#else#ifdef MACchar *ck_s_xver = "0.995"; /* Product-specific version string */long ck_l_xver = 995L; /* Product-specific version number */#elsechar *ck_s_xver = ""; /* Don't touch these... */long ck_l_xver = 0L; /* they are computed at runtime */#endif /* MAC */#endif /* OS2 */#ifdef OS2#ifdef IKSDONLY#ifdef NTchar *ck_s_name = "IKS-NT";#else /* NT */char *ck_s_name = "IKS-OS/2";#endif /* NT */#else /* IKSDONLY */char *ck_s_name = "Kermit 95"; /* Program name */#endif /* IKSDONLY */#else#ifdef MACchar *ck_s_name = "Mac Kermit";#elsechar *ck_s_name = "C-Kermit";#endif /* MAC */#endif /* OS2 */char *ck_s_who = ""; /* Where customized, "" = not. */char *ck_patch = ""; /* Patch info, if any. */#define CKVERLEN 128char versiox[CKVERLEN]; /* Version string buffer */char *versio = versiox; /* These are filled in at */long vernum, xvernum; /* runtime from above. */#define CKCMAI#include "ckcasc.h" /* ASCII character symbols */#include "ckcdeb.h" /* Debug & other symbols */char * myname = NULL; /* The name I am called by */#ifndef OS2char * exedir = NULL; /* Directory I was executed from */#endif /* OS2 */char * myhome = NULL; /* Home directory override *//* C K C M A I -- C-Kermit Main program *//* Author: Frank da Cruz (fdc@columbia.edu), Columbia University Academic Information Systems, New York City.COPYRIGHT NOTICE:*/#ifdef OS2char *wiksdcpr[] = {"Windows Internet Kermit Service Daemon (WIKSD):","Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New","York. All rights reserved."," ","PERMISSIONS:"," "," The WIKSD software may be obtained directly, in binary form only, from"," the Kermit Project at Columbia University by any individual for his or"," her OWN USE, and by any company or other organization for its own"," INTERNAL DISTRIBUTION and use, including installation on servers that"," are accessed by customers or clients, WITHOUT EXPLICIT LICENSE. All"," other forms of redistribution must be licensed from the Kermit Project"," at Columbia University. These permissions apply only to the nonsecure"," version of WIKSD."," ","DISCLAIMER:"," "," THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE"," TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK AS TO ITS"," FITNESS FOR ANY PURPOSE, AND WITHOUT WARRANTY BY THE TRUSTEES OF"," COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK OF ANY KIND, EITHER"," EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED"," WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE."," THE TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK SHALL NOT"," BE LIABLE FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL,"," OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OR IN"," CONNECTION WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS"," HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. YOU SHALL"," INDEMNIFY AND HOLD HARMLESS THE TRUSTEES OF COLUMBIA UNIVERSITY IN"," THE CITY OF NEW YORK, ITS EMPLOYEES AND AGENTS FROM AND AGAINST ANY"," AND ALL CLAIMS, DEMANDS, LOSS, DAMAGE OR EXPENSE (INCLUDING"," ATTORNEYS' FEES) ARISING OUT OF YOUR USE OF THIS SOFTWARE."," ","The above copyright notice, permissions notice, and disclaimer may not be","removed, altered, or obscured and shall be included in all copies of the","WIKSD software. The Trustees of Columbia University in the City of","New York reserve the right to revoke this permission if any of the terms","of use set forth above are breached."," ","For further information, contact the Kermit Project, Columbia University,","612 West 115th Street, New York NY 10025-7799, USA; Phone +1 (212) 854 3703,","Fax +1 (212) 662 6442, kermit@columbia.edu, http://www.columbia.edu/kermit/",""};#endif /* OS2 */char *copyright[] = {#ifdef pdp11"Copyright (C) 1985, 2004, Trustees of Columbia University, NYC.","All rights reserved."," ",#else#ifdef OS2"Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New","York. All rights reserved. This software is furnished under license","and may not be reproduced without license to do so. This copyright notice","must not be removed, altered, or obscured."," "," THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE"," TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK AS TO ITS"," FITNESS FOR ANY PURPOSE, AND WITHOUT WARRANTY BY THE TRUSTEES OF"," COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK OF ANY KIND, EITHER"," EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED"," WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE."," THE TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK SHALL NOT"," BE LIABLE FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL,"," OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OR IN"," CONNECTION WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS"," HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. YOU SHALL"," INDEMNIFY AND HOLD HARMLESS THE TRUSTEES OF COLUMBIA UNIVERSITY IN"," THE CITY OF NEW YORK, ITS EMPLOYEES AND AGENTS FROM AND AGAINST ANY"," AND ALL CLAIMS, DEMANDS, LOSS, DAMAGE OR EXPENSE (INCLUDING"," ATTORNEYS' FEES) ARISING OUT OF YOUR USE OF THIS SOFTWARE."," ",#else"Copyright (C) 1985, 2004,"," The Trustees of Columbia University in the City of New York."," All rights reserved."," ","PERMISSIONS:"," ","The C-Kermit software may be obtained directly from the Kermit Project at","Columbia University (or from any source explicitly licensed by the Kermit","Project or implicitly licensed by Clause (A) below) by any individual for","his or her OWN USE, and by any company or other organization for its own","INTERNAL DISTRIBUTION and use, including installation on servers that are","accessed by customers or clients, WITHOUT EXPLICIT LICENSE."," ","Conditions for REDISTRIBUTION are as follows:"," ","(A) The C-Kermit software, in source and/or binary form, may be"," included WITHOUT EXPLICIT LICENSE in distributions of OPERATING"," SYSTEMS that have OSI (Open Source Initiative, www.opensource.org)"," approved licenses, even if non-Open-Source applications (but not"," operating systems) are included in the same distribution. Such"," distributions include, but are not limited to, CD-ROM, FTP site,"," Web site, or preinstalled software on a new GENERAL-PURPOSE"," computer, as long as the primary character of the distribution is"," an Open Source operating system with accompanying utilities. The"," C-Kermit source code may not be changed without the consent of the"," Kermit Project, which will not be unreasonably withheld (this is"," simply a matter of keeping a consistent and supportable code base)."," ","(B) Inclusion of C-Kermit software in whole or in part, in any form, in"," or with any product not covered by Clause (A), or its distribution"," by any commercial enterprise to its actual or potential customers"," or clients except as in Clause (A), requires a license from the"," Kermit Project, Columbia University; contact kermit@columbia.edu."," ","The name of Columbia University may not be used to endorse or promote","products derived from or including the C-Kermit software without specific","prior written permission."," ","DISCLAIMER:"," "," THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE"," TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK AS TO ITS"," FITNESS FOR ANY PURPOSE, AND WITHOUT WARRANTY BY THE TRUSTEES OF"," COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK OF ANY KIND, EITHER"," EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED"," WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE."," THE TRUSTEES OF COLUMBIA UNIVERSITY IN THE CITY OF NEW YORK SHALL NOT"," BE LIABLE FOR ANY DAMAGES, INCLUDING SPECIAL, INDIRECT, INCIDENTAL,"," OR CONSEQUENTIAL DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR"," IN CONNECTION WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS"," HEREAFTER ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. YOU SHALL"," INDEMNIFY AND HOLD HARMLESS THE TRUSTEES OF COLUMBIA UNIVERSITY IN"," THE CITY OF NEW YORK, ITS EMPLOYEES AND AGENTS FROM AND AGAINST ANY"," AND ALL CLAIMS, DEMANDS, LOSS, DAMAGE OR EXPENSE (INCLUDING"," ATTORNEYS' FEES) ARISING OUT OF YOUR USE OF THIS SOFTWARE."," ","The above copyright notice, permissions notice, and disclaimer may not be","removed, altered, or obscured and shall be included in all copies of the","C-Kermit software. The Trustees of Columbia University in the City of","New York reserve the right to revoke this permission if any of the terms","of use set forth above are breached.",#endif /* OS2 */#endif /* pdp11 */#ifdef OS2"Portions Copyright (C) 1995, Oy Online Solutions Ltd., Jyvaskyla, Finland.",#endif /* OS2 */#ifdef CK_AUTHENTICATION"Portions Copyright (C) 1990, Massachusetts Institute of Technology.",#ifdef CK_ENCRYPTION"Portions Copyright (C) 1991, 1993 Regents of the University of California.","Portions Copyright (C) 1991, 1992, 1993, 1994, 1995 by AT&T.","Portions Copyright (C) 1995, 1997, Eric Young <eay@cryptosoft.com>.",#endif /* CK_ENCRYPTION */#ifdef CK_SRP"Portions Copyright (C) 1997, Stanford University.",#endif /* CK_SRP */#endif /* CK_AUTHENTICATION */#ifndef pdp11" ","For further information, contact the Kermit Project, Columbia University,","612 West 115th Street, New York NY 10025-7799, USA; phone +1 (212) 854 3703,","fax +1 (212) 663 8202 or +1 (212) 662 6442, email kermit@columbia.edu,","Web http://www.columbia.edu/kermit/ or http://www.kermit-project.org/.",#endif /* pdp11 */""};/*DOCUMENTATION: "Using C-Kermit" by Frank da Cruz and Christine M. Gianone, Digital Press / Butterworth-Heinemann, Woburn MA, USA. Second edition (1997), ISBN 1-55558-164-1. Order from Digital Press: +1 (800) 366-2665 Or from Columbia University: +1 (212) 854-3703For Kermit 95, also: "Kermit 95" by Christine M. Gianone and Frank da Cruz, Manning Publications, Greenwich CT, USA (1998) - Online.ACKNOWLEDGMENTS: The Kermit file transfer protocol was developed at the Columbia University Center for Computing Activities (CUCCA), which was since renamed to Columbia University Academic Information Systems (AcIS). Kermit is named after Kermit the Frog, star of the television series THE MUPPET SHOW; the name is used by permission of Henson Associates, Inc. Thanks to at least the following people for their contributions to this program over the years, and apologies to anyone who was inadvertantly omitted: Chris Adie, Edinburgh U, Scotland (OS/2) Robert Adsett, University of Waterloo, Canada Larry Afrin, Clemson U Russ Allbery, Stanford U Jeffrey Altman, Columbia University Greg Andrews, Telebit Corp Barry Archer, U of Missouri Robert Andersson, International Systems A/S, Oslo, Norway Chris Armstrong, Brookhaven National Lab (OS/2) William Bader, Software Consulting Services, Nazareth, PA Fuat Baran, Columbia U Stan Barber, Rice U Jim Barbour, U of Colorado Donn Baumgartner, Dell
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -