Annotation of 43BSDReno/usr.bin/tip/cmdtab.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1983 The Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  */
                     19: 
                     20: #ifndef lint
                     21: static char sccsid[] = "@(#)cmdtab.c   5.6 (Berkeley) 6/1/90";
                     22: #endif /* not lint */
                     23: 
                     24: #include "tip.h"
                     25: 
                     26: extern int shell(), getfl(), sendfile(), chdirectory();
                     27: extern int finish(), help(), pipefile(), pipeout(), consh(), variable();
                     28: extern int cu_take(), cu_put(), dollar(), genbrk(), suspend();
                     29: 
                     30: esctable_t etable[] = {
                     31:        { '!',  NORM,   "shell",                         shell },
                     32:        { '<',  NORM,   "receive file from remote host", getfl },
                     33:        { '>',  NORM,   "send file to remote host",      sendfile },
                     34:        { 't',  NORM,   "take file from remote UNIX",    cu_take },
                     35:        { 'p',  NORM,   "put file to remote UNIX",       cu_put },
                     36:        { '|',  NORM,   "pipe remote file",              pipefile },
                     37:        { '$',  NORM,   "pipe local command to remote host", pipeout },
                     38: #ifdef CONNECT
                     39:        { 'C',  NORM,   "connect program to remote host",consh },
                     40: #endif
                     41:        { 'c',  NORM,   "change directory",              chdirectory },
                     42:        { '.',  NORM,   "exit from tip",                 finish },
                     43:        {CTRL('d'),NORM,"exit from tip",                 finish },
                     44:        {CTRL('y'),NORM,"suspend tip (local+remote)",    suspend },
                     45:        {CTRL('z'),NORM,"suspend tip (local only)",      suspend },
                     46:        { 's',  NORM,   "set variable",                  variable },
                     47:        { '?',  NORM,   "get this summary",              help },
                     48:        { '#',  NORM,   "send break",                    genbrk },
                     49:        { 0, 0, 0 }
                     50: };

unix.superglobalmegacorp.com

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