1: /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tw.decls.h,v 3.0 1991/07/04 21:49:28 christos Exp $ */ 2: /* 3: * tw.decls.h: Tenex external declarations 4: */ 5: /*- 6: * Copyright (c) 1980, 1991 The Regents of the University of California. 7: * All rights reserved. 8: * 9: * Redistribution and use in source and binary forms, with or without 10: * modification, are permitted provided that the following conditions 11: * are met: 12: * 1. Redistributions of source code must retain the above copyright 13: * notice, this list of conditions and the following disclaimer. 14: * 2. Redistributions in binary form must reproduce the above copyright 15: * notice, this list of conditions and the following disclaimer in the 16: * documentation and/or other materials provided with the distribution. 17: * 3. All advertising materials mentioning features or use of this software 18: * must display the following acknowledgement: 19: * This product includes software developed by the University of 20: * California, Berkeley and its contributors. 21: * 4. Neither the name of the University nor the names of its contributors 22: * may be used to endorse or promote products derived from this software 23: * without specific prior written permission. 24: * 25: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35: * SUCH DAMAGE. 36: */ 37: #ifndef _h_tw_decls 38: #define _h_tw_decls 39: 40: /* 41: * tw.help.c 42: */ 43: extern void do_help __P((Char *)); 44: 45: /* 46: * tw.parse.c 47: */ 48: extern int tenematch __P((Char *, int, int, 49: COMMAND)); 50: extern int t_search __P((Char *, Char *, COMMAND, 51: int, int, int)); 52: extern int starting_a_command __P((Char *, Char *)); 53: extern void copyn __P((Char *, Char *, int)); 54: extern void catn __P((Char *, Char *, int)); 55: extern int fcompare __P((Char **, Char **)); 56: extern void print_by_column __P((Char *, Char *[], int, 57: int)); 58: extern int StrQcmp __P((Char *, Char *)); 59: 60: /* 61: * tw.init.c 62: */ 63: extern void tw_clear_comm_list __P((void)); 64: extern void tw_sort_comms __P((void)); 65: extern void tw_comm_name_add __P((Char *)); 66: extern void tw_builtins_add __P((void)); 67: extern void tw_aliases_add __P((void)); 68: extern struct varent *tw_shell_list_start __P((void)); 69: extern Char *tw_n_shell_var __P((struct varent **)); 70: extern Char **tw_env_list_start __P((void)); 71: extern Char *Getenv __P((Char *)); 72: extern Char *tw_n_env_var __P((Char ***)); 73: 74: /* 75: * tw.spell.c 76: */ 77: extern int spell_me __P((Char *, int, int)); 78: extern int spdir __P((Char *, Char *, Char *, 79: Char *)); 80: extern int spdist __P((Char *, Char *)); 81: 82: #endif /* _h_tw_decls */