main.h revision 127958
1254885Sdumbbell/*- 2254885Sdumbbell * Copyright (c) 1991, 1993 3254885Sdumbbell * The Regents of the University of California. All rights reserved. 4254885Sdumbbell * 5254885Sdumbbell * This code is derived from software contributed to Berkeley by 6254885Sdumbbell * Kenneth Almquist. 7254885Sdumbbell * 8254885Sdumbbell * Redistribution and use in source and binary forms, with or without 9254885Sdumbbell * modification, are permitted provided that the following conditions 10254885Sdumbbell * are met: 11254885Sdumbbell * 1. Redistributions of source code must retain the above copyright 12254885Sdumbbell * notice, this list of conditions and the following disclaimer. 13254885Sdumbbell * 2. Redistributions in binary form must reproduce the above copyright 14254885Sdumbbell * notice, this list of conditions and the following disclaimer in the 15254885Sdumbbell * documentation and/or other materials provided with the distribution. 16254885Sdumbbell * 4. Neither the name of the University nor the names of its contributors 17254885Sdumbbell * may be used to endorse or promote products derived from this software 18254885Sdumbbell * without specific prior written permission. 19254885Sdumbbell * 20254885Sdumbbell * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21254885Sdumbbell * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22254885Sdumbbell * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23254885Sdumbbell * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24254885Sdumbbell * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25254885Sdumbbell * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26254885Sdumbbell * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27254885Sdumbbell * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28254885Sdumbbell * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29254885Sdumbbell * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30254885Sdumbbell * SUCH DAMAGE. 31254885Sdumbbell * 32254885Sdumbbell * @(#)main.h 8.2 (Berkeley) 5/4/95 33254885Sdumbbell * $FreeBSD: head/bin/sh/main.h 127958 2004-04-06 20:06:54Z markm $ 34254885Sdumbbell */ 35254885Sdumbbell 36254885Sdumbbellextern int rootpid; /* pid of main shell */ 37254885Sdumbbellextern int rootshell; /* true if we aren't a child of the main shell */ 38254885Sdumbbell 39254885Sdumbbellvoid readcmdfile(char *); 40254885Sdumbbellvoid cmdloop(int); 41254885Sdumbbellint dotcmd(int, char **); 42254885Sdumbbellint exitcmd(int, char **); 43254885Sdumbbell