Annotation of 43BSD/contrib/cpm/src/test, revision 1.1

1.1     ! root        1: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������A       DF �C       C  �TAGS_1            
        !             2: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
        !             3: dbmap  bitmap.c        /^dbmap(str)$/
        !             4: delete delete.c        /^delete(cmdline)$/
        !             5: dispdir        dirhdl.c        /^dispdir()$/
        !             6: dump   hexdmp.c        /^dump(cmdlin��������������������������������������������������������������������������������������������������������������������������������$/
        !             7: c_flsbuf       cflsbuf.c       /^c_flsbuf(c, fptr)$/
        !             8: c_flush        cflsbuf.c       /^c_flush(fptr)$/
        !             9: c_open copen.c /^c_open(name, ext, mode)$/
        !            10: c������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������e)$/
        !            11: ffc    ffc.c   /^ffc(start, len, field)$/
        !            12: fixname        ccreat.c        /^fixname(name, ext)$/
        !            13: gen_sktab      gensktab.c      /^gen_sktab()$/
        !            14: getbl��������������������������������������������������������������������������������������������������������������������������������_write    cflsbuf.c       /^c_write(fptr, buf, cnt)$/
        !            15: checkname      ccreat.c        /^checkname(s)$/
        !            16: chkcmd cmdhdl.c        /^chkcmd(cmd)$/
        !            17: clean  cmdhdl������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ock       blockio.c       /^getblock(blockno, buffer, nsect)$/
        !            18: getdir dirhdl.c        /^getdir()$/
        !            19: getnext        extent.c        /^getnext(cur)$/
        !            20: getpsect       ph��������������������������������������������������������������������������������������������������������������������������������.c    /^clean(str, len)$/
        !            21: cmdinp cmdhdl.c        /^cmdinp(cmd)$/
        !            22: copy   copy.c  /^copy(cpmfile, unixfile, bin)$/
        !            23: copybin        copy.c  /^copybin(��������������������������������������������������������������������������������������������������������������������������������Mcpm  cpm.c   /^main(argc, argv)$/
        !            24: alloc  bitmap.c        /^alloc()$/
        !            25: blks_used      bitmap.c        /^blks_used()$/
        !            26: build_bmap     bitmap.c        /^build_bma��������������������������������������������������������������������������������������������������������������������������������ysio.c       /^getpsect(tr, sect, buf)$/
        !            27: help   cmdhdl.c        /^help()$/
        !            28: hexdump        hexdmp.c        /^hexdump(fp)$/
        !            29: initcpm        physio.c        /^initcpm(name)��������������������������������������������������������������������������������������������������������������������������������cid, ufid)$/
        !            30: copyc  copy.c  /^copyc(cmdline, bin)$/
        !            31: copytext       copy.c  /^copytext(cid, ufid)$/
        !            32: creext extent.c        /^creext(curext)$/
��������������������������������������������������������������������������������������������������������������������������������p()$/
        !            33: c_close        cclose.c        /^c_close(fptr)$/
        !            34: c_creat        ccreat.c        /^c_creat(name, ext, flag)$/
        !            35: c_fillbuf      cfillbuf.c      /^c_fillbuf(fptr)$/
        !            36: interact       interact.c      /^interact()$/
        !            37: intrpt interact.c      /^intrpt()$/
        !            38: namesep        cmdhdl.c        /^namesep(fname, name, ext)$/
        !            39: number ce)$/
        !            40: ffc    ffc.c   /^ffc(start, len, field)$/
        !            41: fixname        ccreat.c        /^fixname(name, ext)$/
        !            42: gen_sktab      gensktab.c      /^gen_sktab()$/
        !            43: getbl_write    cflsbuf.c       /^c_write(fptr, buf, cnt)$/
        !            44: checkname      ccreat.c        /^checkname(s)$/
        !            45: chkcmd cmdhdl.c        /^chkcmd(cmd)$/
        !            46: clean  cmdhdl++) {
        !            47:                        ch = *(char *)i;
        !            48:                        putchar((int)ch);
        !            49:                }
        !            50:        }
        !            51: #endif
        !            52:        if (iflag > 0) {
        !            53:                interact();
        !            54:                exit(0);
        !            55:        }
        !            56:        if (dflag                       if ((maxdir < 64) || (tracks >1024 )) {
        !            57:                                fprintf(stderr, "cpm: illegal value of m-flag: %d\n",maxdir);
        !            58:                                exit(1);
        !            59:                        bin)$/
        !            60: piptext        pip.c   /^piptext(cid, ufid)$/
        !            61: printline      hexdmp.c        /^printline(cbuf, nc)$/
        !            62: putblock       blockio.c       /^putblock(blockno,pm.c /^number(big)$/
        !            63: pip    pip.c   /^pip(cmdline, bin)$/
        !            64: pipbin pip.c   /^pipbin(cid, ufid)$/
        !            65: pipc   pip.c   /^pipc(unixfile, cpmfile, ock   blockio.c       /^getblock(blockno, buffer, nsect)$/
        !            66: getdir dirhdl.c        /^getdir()$/
        !            67: getnext        extent.c        /^getnext(cur)$/
        !            68: getpsect       ph.c    /^clean(str, len)$/
        !            69: cmdinp cmdhdl.c        /^cmdinp(cmd)$/
        !            70: copy   copy.c  /^copy(cpmfile, unixfile, bin)$/
        !            71: copybin        copy.c  /^copybin(> 0) 
        !            72:                dispdir();
        !            73:        if (cflag > 0) {
        !            74:                copy(cpmname, unixname, Bflag);
        !            75:                exit(0);
        !            76:        }
        !            77:        if (Cflag > 0) {
        !            78:                pipc(unixname, cMcpm    cpm.c   /^main(argc, argv)$/
        !            79: alloc  bitmap.c        /^alloc()$/
        !            80: blks_used      bitmap.c        /^blks_used()$/
        !            81: build_bmap     bitmap.c        /^build_bma buffer, nsect)$/
        !            82: putpsect       physio.c        /^putpsect(tr, sect, buf)$/
        !            83: rename rename.c        /^rename(cmdline)$/
        !            84: savedir        dirhdl.c        /^savedibin)$/
        !            85: piptext        pip.c   /^piptext(cid, ufid)$/
        !            86: printline      hexdmp.c        /^printline(cbuf, nc)$/
        !            87: putblock       blockio.c       /^putblock(blockno,ysio.c       /^getpsect(tr, sect, buf)$/
        !            88: help   cmdhdl.c        /^help()$/
        !            89: hexdump        hexdmp.c        /^hexdump(fp)$/
        !            90: initcpm        physio.c        /^initcpm(name)cid, ufid)$/
        !            91: copyc  copy.c  /^copyc(cmdline, bin)$/
        !            92: copytext       copy.c  /^copytext(cid, ufid)$/
        !            93: creext extent.c        /^creext(curext)$/
pmname, Bflag);
        !            94:                exit(0);
        !            95:        }
        !            96:        if (tflag > 0) {
        !            97:                copy(cpmname, stdout, 0);
        !            98:                exit(0);
        !            99:        }
        !           100: }
        !           101: 
        !           102: 
        !           103: number(big)
        !           104: {
        !           105:        registep()$/
        !           106: c_close        cclose.c        /^c_close(fptr)$/
        !           107: c_creat        ccreat.c        /^c_creat(name, ext, flag)$/
        !           108: c_fillbuf      cfillbuf.c      /^c_fillbuf(fptr)r()$/
        !           109: searchdir      dirhdl.c        /^searchdir(name,ext)$/
        !           110: usage  cpm.c   /^usage()$/
        !           111:  buffer, nsect)$/
        !           112: putpsect       physio.c        /^putpsect(tr, sect, buf)$/
        !           113: rename rename.c        /^rename(cmdline)$/
        !           114: savedir        dirhdl.c        /^savedi$/
        !           115: interact       interact.c      /^interact()$/
        !           116: intrpt interact.c      /^intrpt()$/
        !           117: namesep        cmdhdl.c        /^namesep(fname, name, ext)$/
        !           118: number c
        !           119: dbmap  bitmap.c        /^dbmap(str)$/
        !           120: delete delete.c        /^delete(cmdline)$/
        !           121: dispdir        dirhdl.c        /^dispdir()$/
        !           122: dump   hexdmp.c        /^dump(cmdlinr char *cs;
        !           123:        long n;
        !           124: 
        !           125:        cs = string;
        !           126:        n = 0;
        !           127:        while(*cs >= '0' && *cs <= '9')
        !           128:                n = n*10 + *cs++ - '0';
        !           129:        for(;;)
        !           130:        switch($/
        !           131: c_flsbuf       cflsbuf.c       /^c_flsbuf(c, fptr)$/
        !           132: c_flush        cflsbuf.c       /^c_flush(fptr)$/
        !           133: c_open copen.c /^c_open(name, ext, mode)$/
        !           134: c
        !           135:        if (xflag > 0) {
        !           136:                int i;
        !           137:                char ch;
        !           138: 
        !           139:                dbmap("current bitmap:\n"); 
        !           140:                for (i = (int)dirbuf; i< (int)dirbuf+maxdir*32; ir()$/
        !           141: searchdir      dirhdl.c        /^searchdir(name,ext)$/
        !           142: usage  cpm.c   /^usage()$/
        !           143: pm.c       /^number(big)$/
        !           144: pip    pip.c   /^pip(cmdline, bin)$/
        !           145: pipbin pip.c   /^pipbin(cid, ufid)$/
        !           146: pipc   pip.c   /^pipc(unixfile, cpmfile, *cs++) {
        !           147: 
        !           148:        case 'k':
        !           149:                n *= 1024;
        !           150:                continue;
        !           151: 
        !           152:        case 'w':
        !           153:                n *= sizeof(int);
        !           154:                continue;
        !           155: 
        !           156:        case 'b':
        !           157:                n *= 512;
        !           158:                elp     cmdhdl.c        /^help()$/
        !           159: hexdump        hexdmp.c        /^hexdump(fp)$/
        !           160: initcpm        physio.c        /^initcpm(name)$/
        !           161: interact       interact.c      /^interact()$mdline, bin)$/
        !           162: copytext       copy.c  /^copytext(cid, ufid)$/
        !           163: creext extent.c        /^creext(curext)$/
        !           164: dbmap  bitmap.c        /^dbmap(str)$/
        !           165: dele$/
        !           166: c_flsbuf       cflsbuf.c       /^c_flsbuf(c, fptr)$/
        !           167: c_flush        cflsbuf.c       /^c_flush(fptr)$/
        !           168: c_open copen.c /^      c_open(name, ext, mode)$/
        !           169: p()$/
        !           170: c_close        cclose.c        /^c_close(fptr)$/
        !           171: c_creat        ccreat.c        /^c_creat(name, ext, flag)$/
        !           172: c_fillbuf      cfillbuf.c      /^c_fillbuf(fptr)(name,ext)$/
        !           173: usage  cpm.c   /^usage()$/
        !           174: continue;
        !           175: 
        !           176:        case '*':
        !           177:        case 'x':
        !           178:                string = cs;
        !           179:                n *= number(BIG);
        !           180: 
        !           181:        case '\0':
        !           182:                if (n >= big || n < 0) {
        !           183:                        fprintf(/
        !           184: intrpt interact.c      /^intrpt()$/
        !           185: namesep        cmdhdl.c        /^namesep(fname, name, ext)$/
        !           186: number cpm.c   /^number(big)$/
        !           187: pip    pip.c   /^pipte delete.c        /^delete(cmdline)$/
        !           188: dispdir        dirhdl.c        /^dispdir()$/
        !           189: dump   hexdmp.c        /^dump(cmdline)$/
        !           190: ffc    ffc.c   /^ffc(start, len, fic_write     cflsbuf.c       /^c_write(fptr, buf, cnt)$/
        !           191: chkcmd cmdhdl.c        /^chkcmd(cmd)$/
        !           192: clean  cmdhdl.c        /^clean(str, len)$/
        !           193: cmdinp cmdhd$/
        !           194: c_flsbuf       cflsbuf.c       /^c_flsbuf(c, fptr)$/
        !           195: c_flush        cflsbuf.c       /^c_flush(fptr)$/
        !           196: c_open copen.c /^      c_open(name, ext, mode)$/
        !           197: stderr,"cpm: number: argument %d out of range\n", n);
        !           198:                        exit(1);
        !           199:                }
        !           200:                return (n);
        !           201:        }
        !           202: }
        !           203: 
        !           204: usage()
        !           205: {
        !           206:        printf("Usage: cpm(cmdline, bin)$/
        !           207: pipbin pip.c   /^pipbin(cid, ufid)$/
        !           208: pipc   pip.c   /^pipc(unixfile, cpmfile, bin)$/
        !           209: piptext        pip.c   /^piptext(cid, eld)$/
        !           210: fnfound        copen.c /^fnfound(name, ext)$/
        !           211: gen_sktab      gensktab.c      /^gen_sktab()$/
        !           212: getblock       blockio.c       /^getblock(blockno, bufl.c      /^cmdinp(cmd)$/
        !           213: copy   copy.c  /^copy(cpmfile, unixfile, bin)$/
        !           214: copybin        copy.c  /^copybin(cid, ufid)$/
        !           215: copyc  copy.c  /^copyc(cc_write        cflsbuf.c       /^c_write(fptr, buf, cnt)$/
        !           216: chkcmd cmdhdl.c        /^chkcmd(cmd)$/
        !           217: clean  cmdhdl.c        /^clean(str, len)$/
        !           218: cmdinp cmdhdMcpm       cpm.c   /^main(argc, argv)$/
        !           219: alloc  bitmap.c        /^alloc()$/
        !           220: blks_used      bitmap.c        /^blks_used()$/
        !           221: build_bmap     bitmap.c        /^build_bma [-i][-d][-p name][-c|C name1 name2] file-name\n");
        !           222:        exit(1);
        !           223: }
        !           224: ufid)$/
        !           225: printline      hexdmp.c        /^printline(cbuf, nc)$/
        !           226: putblock       blockio.c       /^putblock(blockno, buffer, nsect)$/
        !           227: putpsect       physio.c        fer, nsect)$/
        !           228: getdir dirhdl.c        /^getdir()$/
        !           229: getnext        extent.c        /^getnext(cur)$/
        !           230: getpsect       physio.c        /^getpsect(tr, sect, buf)$/
        !           231: hmdline, bin)$/
        !           232: copytext       copy.c  /^copytext(cid, ufid)$/
        !           233: creext extent.c        /^creext(curext)$/
        !           234: dbmap  bitmap.c        /^dbmap(str)$/
        !           235: delel.c        /^cmdinp(cmd)$/
        !           236: copy   copy.c  /^copy(cpmfile, unixfile, bin)$/
        !           237: copybin        copy.c  /^copybin(cid, ufid)$/
        !           238: copyc  copy.c  /^copyc(cp()$/
        !           239: c_close        cclose.c        /^c_close(fptr)$/
        !           240: c_creat        ccreat.c        /^c_creat(name, ext, flag)$/
        !           241: c_fillbuf      cfillbuf.c      /^c_fillbuf(fptr)Mcpm   cpm.c   /^main(argc, argv)$/
        !           242: alloc  bitmap.c        /^alloc()$/
        !           243: blks_used      bitmap.c        /^blks_used()$/
        !           244: build_bmap     bitmap.c        /^build_bma/^putpsect(tr, sect, buf)$/
        !           245: rename rename.c        /^rename(cmdline)$/
        !           246: savedir        dirhdl.c        /^savedir()$/
        !           247: searchdir      dirhdl.c        /^searchdirte   delete.c        /^delete(cmdline)$/
        !           248: dispdir        dirhdl.c        /^dispdir()$/
        !           249: dump   hexdmp.c        /^dump(cmdline)$/
        !           250: ffc    ffc.c   /^ffc(start, len, fi(cmdline, bin)$/
        !           251: pipbin pip.c   /^pipbin(cid, ufid)$/
        !           252: pipc   pip.c   /^pipc(unixfile, cpmfile, bin)$/
        !           253: piptext        pip.c   /^piptext(cid, eld)$/
        !           254: fnfound        copen.c /^fnfound(name, ext)$/
        !           255: gen_sktab      gensktab.c      /^gen_sktab()$/
        !           256: getblock       blockio.c       /^getblock(blockno, bufufid)$/
        !           257: printline      hexdmp.c        /^printline(cbuf, nc)$/
        !           258: putblock       blockio.c       /^putblock(blockno, buffer, nsect)$/
        !           259: putpsect       physio.c        fer, nsect)$/
        !           260: getdir dirhdl.c        /^getdir()$/
        !           261: getnext        extent.c        /^getnext(cur)$/
        !           262: getpsect       physio.c        /^getpsect(tr, sect, buf)$/
        !           263: h/^putpsect(tr, sect, buf)$/
        !           264: rename rename.c        /^rename(cmdline)$/
        !           265: savedir        dirhdl.c        /^savedir()$/
        !           266: searchdir      dirhdl.c        /^searchdirelp  cmdhdl.c        /^help()$/
        !           267: hexdump        hexdmp.c        /^hexdump(fp)$/
        !           268: initcpm        physio.c        /^initcpm(name)$/
        !           269: interact       interact.c      /^interact()$(name,ext)$/
        !           270: usage  cpm.c   /^usage()$/
        !           271: /
        !           272: intrpt interact.c      /^intrpt()$/
        !           273: namesep        cmdhdl.c        /^namesep(fname, name, ext)$/
        !           274: number cpm.c   /^number(big)$/
        !           275: pip    pip.c   /^pip

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.