亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ckuusr.c

?? C 語(yǔ)言核心協(xié)議的 C 語(yǔ)言源代碼
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
char *userv = "User Interface 4C(053), 19 Mar 86";/*  C K U U S R --  "User Interface" for Unix Kermit (Part 1)  *//* Author: Frank da Cruz (SY.FDC@CU20B), Columbia University Center for Computing Activities, January 1985. Copyright (C) 1985, Trustees of Columbia University in the City of New York. Permission is granted to any individual or institution to use, copy, or redistribute this software so long as it is not sold for profit, provided this copyright notice is retained.*//* Form Feed *//* The ckuser module contains the terminal input and output functions for Unix Kermit.  It includes a simple Unix-style command line parser as well as an interactive prompting keyword command parser.  It depends on the existence of Unix facilities like fopen, fgets, feof, (f)printf, argv/argc, etc.  Other functions that are likely to vary among Unix implementations -- like setting terminal modes or interrupts -- are invoked via calls to functions that are defined in the system-dependent modules, ck?[ft]io.c. The command line parser processes any arguments found on the command line, as passed to main() via argv/argc.  The interactive parser uses the facilities of the cmd package (developed for this program, but usable by any program). Any command parser may be substituted for this one.  The only requirements for the Kermit command parser are these: 1. Set parameters via global variables like duplex, speed, ttname, etc.    See ckmain.c for the declarations and descriptions of these variables. 2. If a command can be executed without the use of Kermit protocol, then    execute the command directly and set the variable sstate to 0. Examples    include 'set' commands, local directory listings, the 'connect' command. 3. If a command requires the Kermit protocol, set the following variables:    sstate                             string data      'x' (enter server mode)            (none)      'r' (send a 'get' command)         cmarg, cmarg2      'v' (enter receive mode)           cmarg2      'g' (send a generic command)       cmarg      's' (send files)                   nfils, cmarg & cmarg2 OR cmlist      'c' (send a remote host command)   cmarg    cmlist is an array of pointers to strings.    cmarg, cmarg2 are pointers to strings.    nfils is an integer.    cmarg can be a filename string (possibly wild), or       a pointer to a prefabricated generic command string, or       a pointer to a host command string.    cmarg2 is the name to send a single file under, or       the name under which to store an incoming file; must not be wild.    cmlist is a list of nonwild filenames, such as passed via argv.    nfils is an integer, interpreted as follows:      -1: argument string is in cmarg, and should be expanded internally.       0: stdin.      >0: number of files to send, from cmlist. The screen() function is used to update the screen during file transfer. The tlog() function maintains a transaction log. The debug() function maintains a debugging log. The intmsg() and chkint() functions provide the user i/o for interrupting   file transfers.*//* Form Feed *//* Includes */#include <stdio.h>#include <ctype.h>#ifndef AMIGA#include <signal.h>#endif#include "ckcdeb.h"#include "ckcker.h"#include "ckucmd.h"#include "ckuusr.h"#ifdef AMIGA#define KERMRC "s:kermit-startup"#else#ifdef vax11c#define KERMRC "kermit.ini"#else#define KERMRC ".kermrc"#endif#endif/* External Kermit Variables, see ckmain.c for description. */extern int size, spsiz, rpsiz, npad, timint, rtimo, speed, local, server,  displa, binary, fncnv, delay, parity, deblog, escape, xargc, flow,  turn, duplex, cxseen, czseen, nfils, ckxech, pktlog, seslog, tralog, stdouf,  turnch, chklen, bctr, bctu, dfloc, mdmtyp, keep,  rptflg, rptq, ebqflg, ebq, warn, quiet, cnflg, timef, spsizf, mypadn, tsecs;extern long filcnt, tlci, tlco, ffc, tfc, fsize;extern char *versio, *protv, *ckxv, *ckzv, *fnsv, *connv, *dftty, *cmdv;extern char *dialv, *loginv;extern char *ckxsys, *ckzsys, *cmarg, *cmarg2, **xargv, **cmlist;extern CHAR mystch, stchr, sstate, mypadc, padch, eol, seol, ctlq, filnam[], ttname[];extern char *DIRCMD, *PWDCMD, cmerrp[];char *strcpy(), *getenv();/* Declarations from cmd package */extern char cmdbuf[];                   /* Command buffer *//* Declarations from ck?fio.c module */extern char *SPACMD, *zhome();          /* Space command, home directory. */extern int backgrd;                     /* Kermit executing in background *//* The background flag is set by ckutio.c (via conint() ) to note whether *//* this kermit is executing in background ('&' on shell command line).    *//* Variables and symbols local to this module */char line[CMDBL+10], *lp;               /* Character buffer for anything */char debfil[50];                        /* Debugging log file name */char pktfil[50];                        /* Packet log file name */char sesfil[50];                        /* Session log file name */char trafil[50];                        /* Transaction log file name */int n,                                  /* General purpose int */    cflg,                               /* Command-line connect cmd given */    action,                             /* Action selected on command line*/    repars,                             /* Reparse needed */    tlevel,                             /* Take command level */    cwdf = 0;                           /* CWD has been done */#define MAXTAKE 20                      /* Maximum nesting of TAKE files */FILE *tfile[MAXTAKE];                   /* File pointers for TAKE command */char *homdir;                           /* Pointer to home directory string */char cmdstr[100];/* Form Feed *//*  C M D L I N  --  Get arguments from command line  *//* Simple Unix-style command line parser, conforming with 'A Proposed Command Syntax Standard for Unix Systems', Hemenway & Armitage, Unix/World, Vol.1, No.3, 1984.*/cmdlin() {    char x;                             /* Local general-purpose int */    cmarg = "";                         /* Initialize globals */    cmarg2 = "";    action = cflg = 0;    while (--xargc > 0) {               /* Go through command line words */        xargv++;        debug(F111,"xargv",*xargv,xargc);        if (**xargv == '-') {           /* Got an option (begins with dash) */            x = *(*xargv+1);            /* Get the option letter */            x = doarg(x);               /* Go handle the option */            if (x < 0) doexit(GOOD_EXIT);        } else {                        /* No dash where expected */            usage();            doexit(BAD_EXIT);        }    }    debug(F101,"action","",action);    if (!local) {        if ((action == 'g') || (action == 'r') ||            (action == 'c') || (cflg != 0))            fatal("-l and -b required");    }    if (*cmarg2 != 0) {        if ((action != 's') && (action != 'r') &&            (action != 'v'))            fatal("-a without -s, -r, or -g");    }    if ((action == 'v') && (stdouf) && (!local)) {        if (isatty(1))            fatal("unredirected -k can only be used in local mode");    }    if ((action == 's') || (action == 'v') ||        (action == 'r') || (action == 'x')) {        if (local) displa = 1;        if (stdouf) displa = 0;    }    if (quiet) displa = 0;              /* No display if quiet requested */    if (cflg) {        conect();                       /* Connect if requested */        if (action == 0) {            if (cnflg) conect();        /* And again if requested */            doexit(GOOD_EXIT);          /* Then exit indicating success */        }    }    if (displa) concb(escape);          /* (for console "interrupts") */    return(action);                     /* Then do any requested protocol */}/* Form Feed *//*  D O A R G  --  Do a command-line argument.  */doarg(x) char x; {    int z; char *xp;    xp = *xargv+1;                      /* Pointer for bundled args */    while (x) {        switch (x) {case 'x':                               /* server */    if (action) fatal("conflicting actions");    action = 'x';    break;case 'f':    if (action) fatal("conflicting actions");    action = setgen('F',"","","");    break;case 'r':                               /* receive */    if (action) fatal("conflicting actions");    action = 'v';    break;case 'k':                               /* receive to stdout */    if (action) fatal("conflicting actions");    stdouf = 1;    action = 'v';    break;case 's':                               /* send */    if (action) fatal("conflicting actions");    if (*(xp+1)) fatal("invalid argument bundling after -s");    z = nfils = 0;                      /* Initialize file counter, flag */    cmlist = xargv+1;                   /* Remember this pointer */    while (--xargc > 0) {               /* Traverse the list */        *xargv++;        if (**xargv == '-') {           /* Check for sending stdin */            if (strcmp(*xargv,"-") != 0) break;            z++;        }        nfils++;                        /* Bump file counter */    }    xargc++, *xargv--;                  /* Adjust argv/argc */    if (nfils < 1) fatal("missing filename for -s");    if (z > 1) fatal("-s: too many -'s");    if (z == 1) {        if (nfils == 1) nfils = 0;        else fatal("invalid mixture of filenames and '-' in -s");    }    if (nfils == 0) {        if (isatty(0)) fatal("sending from terminal not allowed");    }    debug(F101,*xargv,"",nfils);    action = 's';    break;/* cont'd... *//* Form Feed *//* ...doarg(), cont'd */case 'g':                               /* get */    if (action) fatal("conflicting actions");    if (*(xp+1)) fatal("invalid argument bundling after -g");    *xargv++, xargc--;    if ((xargc == 0) || (**xargv == '-'))        fatal("missing filename for -g");    cmarg = *xargv;    action = 'r';    break;case 'c':                               /* connect before */    cflg = 1;    break;case 'n':                               /* connect after */    cnflg = 1;    break;case 'h':                               /* help */    usage();    return(-1);case 'a':                               /* "as" */    if (*(xp+1)) fatal("invalid argument bundling after -a");    *xargv++, xargc--;    if ((xargc < 1) || (**xargv == '-'))        fatal("missing name in -a");    cmarg2 = *xargv;    break;case 'l':                               /* set line */    if (*(xp+1)) fatal("invalid argument bundling after -l");    *xargv++, xargc--;    if ((xargc < 1) || (**xargv == '-'))        fatal("communication line device name missing");    strcpy(ttname,*xargv);/*  if (strcmp(ttname,dftty) == 0) local = dfloc; else local = 1;  */    local = (strcmp(ttname,CTTNAM) != 0); /* (better than old way) */    debug(F101,"local","",local);    ttopen(ttname,&local,0);    break;case 'b':                               /* set baud */    if (*(xp+1)) fatal("invalid argument bundling");    *xargv++, xargc--;    if ((xargc < 1) || (**xargv == '-'))        fatal("missing baud");    z = atoi(*xargv);                   /* Convert to number */    if (chkspd(z) > -1) speed = z;      /* Check it */        else fatal("unsupported baud rate");    break;case 'i':                               /* Treat files as binary */    binary = 1;    break;/* cont'd... *//* Form Feed *//* ...doarg(), cont'd */case 'w':                               /* File warning */    warn = 1;    break;case 'q':                               /* Quiet */    quiet = 1;    break;case 'd':                               /* debug */    debopn("debug.log");    break;case 'p':                               /* set parity */    if (*(xp+1)) fatal("invalid argument bundling");    *xargv++, xargc--;    if ((xargc < 1) || (**xargv == '-'))        fatal("missing parity");    switch(x = **xargv) {        case 'e':        case 'o':        case 'm':        case 's': parity = x; break;        case 'n': parity = 0; break;        default:  fatal("invalid parity");        }    break;case 't':    turn = 1;                           /* Line turnaround handshake */    turnch = XON;                       /* XON is turnaround character */    duplex = 1;                         /* Half duplex */    flow = 0;                           /* No flow control */    break;default:    fatal("invalid argument, type 'kermit -h' for help");        }    x = *++xp;                          /* See if options are bundled */    }    return(0);}/* Form Feed *//* Misc */fatal(msg) char *msg; {                 /* Fatal error message */    fprintf(stderr,"\r\nFatal: %s\n",msg);    tlog(F110,"Fatal:",msg,0l);    doexit(BAD_EXIT);                   /* Exit indicating failure */}ermsg(msg) char *msg; {                 /* Print error message */#ifdef AMIGA    if (!quiet) printf3("\r\n%s - %s\n",cmerrp,msg);#else    if (!quiet) fprintf(stderr,"\r\n%s - %s\n",cmerrp,msg);#endif    tlog(F110,"Error -",msg,0l);}/* Form Feed *//* Interactive command parser *//* Top-Level Keyword Table */struct keytab cmdtab[] = {    "!",           XXSHE, 0,    "%",           XXCOM, CM_INV,    "bye",         XXBYE, 0,    "c",           XXCON, CM_INV,    "close",       XXCLO, 0,    "connect",     XXCON, 0,    "cwd",         XXCWD, 0,    "dial",        XXDIAL, 0,    "directory",   XXDIR, 0,    "echo",        XXECH, 0,    "exit",        XXEXI, 0,    "finish",      XXFIN, 0,    "get",         XXGET, 0,    "help",        XXHLP, 0,    "log",         XXLOG, 0,    "quit",        XXQUI, 0,    "r",           XXREC, CM_INV,    "receive",     XXREC, 0,    "remote",      XXREM, 0,    "s",           XXSEN, CM_INV,    "script",      XXLOGI, 0,    "send",        XXSEN, 0,    "server",      XXSER, 0,    "set",         XXSET, 0,    "show",        XXSHO, 0,    "space",       XXSPA, 0,    "statistics",  XXSTA, 0,    "take",        XXTAK, 0};int ncmd = (sizeof(cmdtab) / sizeof(struct keytab));/* Form Feed *//* Parameter keyword table */struct keytab prmtab[] = {    "baud",             XYSPEE,  CM_INV,    "block-check",      XYCHKT,  0,    "delay",            XYDELA,  0,    "duplex",           XYDUPL,  0,    "end-of-packet",    XYEOL,   CM_INV,    /* moved to send/receive */    "escape-character", XYESC,   0,    "file",             XYFILE,  0,    "flow-control",     XYFLOW,  0,    "handshake",        XYHAND,  0,    "incomplete",       XYIFD,   0,    "line",             XYLINE,  0,    "modem-dialer",     XYMODM,  0,    "packet-length",    XYLEN,   CM_INV,    /* moved to send/receive */    "pad-character",    XYPADC,  CM_INV,    /* moved to send/receive */    "padding",          XYNPAD,  CM_INV,    /* moved to send/receive */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区久激情瑜伽| 色婷婷综合久久久中文一区二区| 丝袜美腿一区二区三区| 日韩毛片一二三区| 日韩高清不卡一区二区三区| 一区二区三区蜜桃网| 成人免费在线观看入口| 欧美激情综合五月色丁香小说| 2020国产精品久久精品美国| 日韩欧美国产一区在线观看| 91精品福利在线一区二区三区| 欧美日韩精品综合在线| 欧美日韩在线三区| 欧美日本一区二区在线观看| 欧美剧情片在线观看| 欧美猛男男办公室激情| 91精品欧美一区二区三区综合在| 欧美三级欧美一级| 91精品国产91久久综合桃花 | 精品亚洲国内自在自线福利| 青青草97国产精品免费观看无弹窗版| 天天综合色天天综合| 久久精品国产精品青草| 久久不见久久见免费视频1| 狠狠色狠狠色综合系列| 狠狠v欧美v日韩v亚洲ⅴ| 国产福利一区二区| av成人免费在线观看| 色噜噜夜夜夜综合网| 欧美日韩一区二区在线观看| 欧美一区二区三区四区视频| 日韩免费看网站| 国产欧美日韩精品在线| 综合在线观看色| 亚洲大型综合色站| 蜜桃av噜噜一区| 国产精品一区二区果冻传媒| 成人av手机在线观看| 久久久精品国产免费观看同学| 中文字幕av一区二区三区高| 亚洲精品乱码久久久久久久久 | 亚洲一区二区在线观看视频| 婷婷六月综合亚洲| 极品尤物av久久免费看| 99久久国产免费看| 欧美日本乱大交xxxxx| 欧美精品一区二区三区一线天视频| 欧美激情在线一区二区| 亚洲精品第1页| 久草这里只有精品视频| aaa国产一区| 欧美精品一卡二卡| 国产亚洲一区二区三区在线观看| 一区二区欧美国产| 精品无人码麻豆乱码1区2区 | 九一久久久久久| zzijzzij亚洲日本少妇熟睡| 在线91免费看| 中文字幕亚洲在| 日本不卡123| 成人美女在线视频| 欧美一级高清片| 国产精品色婷婷久久58| 日韩国产精品大片| 99re成人在线| 久久精品在这里| 污片在线观看一区二区| 成人av午夜影院| 欧美成人一区二区三区片免费| 亚洲乱码日产精品bd| 国产一区二区女| 欧美高清视频一二三区| 国产精品久久久久久久岛一牛影视| 性做久久久久久免费观看| 波多野结衣一区二区三区| 日韩精品中文字幕在线一区| 一区二区三区精品视频| 国产不卡视频在线播放| 日韩女优av电影在线观看| 夜夜爽夜夜爽精品视频| 丁香婷婷综合网| 欧美成人一区二区三区片免费| 一卡二卡三卡日韩欧美| 国产69精品久久久久毛片 | 国产精品毛片a∨一区二区三区 | bt7086福利一区国产| 亚洲精品在线电影| 日韩av一区二区在线影视| 日本道精品一区二区三区| 欧美激情在线一区二区| 国产一区二区三区av电影| 91精品国产综合久久国产大片| 亚洲精品免费一二三区| 99精品欧美一区二区三区综合在线| 久久久久久一二三区| 久久超碰97中文字幕| 日韩一级视频免费观看在线| 亚洲成人av资源| 欧美体内she精高潮| 亚洲伦在线观看| 91麻豆免费观看| 中文字幕一区日韩精品欧美| 国产不卡在线一区| 中文在线资源观看网站视频免费不卡| 蜜桃av一区二区三区电影| 91精品免费在线观看| 午夜av电影一区| 欧美日韩高清影院| 五月激情丁香一区二区三区| 欧美日韩另类一区| 午夜久久久影院| 欧美日韩一级二级三级| 亚洲不卡av一区二区三区| 欧美日韩国产综合一区二区三区| 亚洲国产日韩综合久久精品| 欧美视频精品在线观看| 亚洲高清免费视频| 欧美妇女性影城| 日本视频中文字幕一区二区三区| 欧美日韩精品系列| 免费看欧美美女黄的网站| 欧美一级免费大片| 韩日av一区二区| 欧美国产精品专区| thepron国产精品| 亚洲女爱视频在线| 欧美色综合网站| 琪琪一区二区三区| 337p日本欧洲亚洲大胆精品 | 一本久久精品一区二区| 亚洲综合区在线| 欧美日韩精品一区二区三区 | 中文久久乱码一区二区| 成人精品视频一区二区三区| 国产精品国产自产拍高清av王其| 色综合天天天天做夜夜夜夜做| 亚洲国产成人精品视频| 日韩三级免费观看| 国产成人在线视频免费播放| 亚洲免费观看视频| 欧美四级电影在线观看| 毛片av一区二区三区| 国产日产亚洲精品系列| 日本高清无吗v一区| 日本伊人色综合网| 日本一区二区在线不卡| 色综合久久久久网| 美女尤物国产一区| 国产精品第一页第二页第三页| 欧洲av在线精品| 国内精品国产成人国产三级粉色 | 日韩精品一级中文字幕精品视频免费观看| 日韩三级av在线播放| 国产91在线观看丝袜| 午夜欧美电影在线观看| 日韩高清在线电影| 欧美大尺度电影在线| 99久久精品情趣| 欧美aa在线视频| 国产精品麻豆欧美日韩ww| 在线电影一区二区三区| 成人一区二区三区| 日韩av网站免费在线| 国产精品美女www爽爽爽| 欧美一区二区精美| 9i看片成人免费高清| 久久成人免费电影| 一区二区欧美在线观看| 国产午夜久久久久| 欧美日韩在线免费视频| 国产99久久久国产精品免费看| 亚洲国产另类av| 国产精品灌醉下药二区| 日韩欧美国产高清| 欧美主播一区二区三区| 国产成人av电影在线观看| 丝袜美腿一区二区三区| 国产精品国产三级国产专播品爱网| 日韩一区国产二区欧美三区| 色94色欧美sute亚洲线路二 | 精品一区二区三区在线观看国产 | 亚洲欧美在线观看| 精品av久久707| 欧美剧情电影在线观看完整版免费励志电影 | 一区二区三区日韩| 中文字幕精品一区二区精品绿巨人| 欧美另类z0zxhd电影| 一本色道综合亚洲| 成人美女视频在线看| 国产一区二区三区免费播放| 日本午夜一区二区| 亚洲韩国精品一区| 亚洲图片欧美激情| 国产精品全国免费观看高清 | 国产精品福利一区二区三区| 精品美女在线观看| 91精品国产乱码久久蜜臀| 欧美日韩国产片| 在线视频综合导航| 色综合天天综合网国产成人综合天 |