15e9cd1aeSAssar Westerlund /*- 25e9cd1aeSAssar Westerlund * Copyright (c) 1992, 1993 35e9cd1aeSAssar Westerlund * The Regents of the University of California. All rights reserved. 45e9cd1aeSAssar Westerlund * 55e9cd1aeSAssar Westerlund * Redistribution and use in source and binary forms, with or without 65e9cd1aeSAssar Westerlund * modification, are permitted provided that the following conditions 75e9cd1aeSAssar Westerlund * are met: 85e9cd1aeSAssar Westerlund * 1. Redistributions of source code must retain the above copyright 95e9cd1aeSAssar Westerlund * notice, this list of conditions and the following disclaimer. 105e9cd1aeSAssar Westerlund * 2. Redistributions in binary form must reproduce the above copyright 115e9cd1aeSAssar Westerlund * notice, this list of conditions and the following disclaimer in the 125e9cd1aeSAssar Westerlund * documentation and/or other materials provided with the distribution. 135e9cd1aeSAssar Westerlund * 3. All advertising materials mentioning features or use of this software 145e9cd1aeSAssar Westerlund * must display the following acknowledgement: 155e9cd1aeSAssar Westerlund * This product includes software developed by the University of 165e9cd1aeSAssar Westerlund * California, Berkeley and its contributors. 175e9cd1aeSAssar Westerlund * 4. Neither the name of the University nor the names of its contributors 185e9cd1aeSAssar Westerlund * may be used to endorse or promote products derived from this software 195e9cd1aeSAssar Westerlund * without specific prior written permission. 205e9cd1aeSAssar Westerlund * 215e9cd1aeSAssar Westerlund * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 225e9cd1aeSAssar Westerlund * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 235e9cd1aeSAssar Westerlund * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 245e9cd1aeSAssar Westerlund * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 255e9cd1aeSAssar Westerlund * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 265e9cd1aeSAssar Westerlund * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 275e9cd1aeSAssar Westerlund * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 285e9cd1aeSAssar Westerlund * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 295e9cd1aeSAssar Westerlund * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 305e9cd1aeSAssar Westerlund * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 315e9cd1aeSAssar Westerlund * SUCH DAMAGE. 325e9cd1aeSAssar Westerlund * 335e9cd1aeSAssar Westerlund * @(#)extern.h 8.1 (Berkeley) 5/31/93 345e9cd1aeSAssar Westerlund * $FreeBSD$ 355e9cd1aeSAssar Westerlund */ 365e9cd1aeSAssar Westerlund 375e9cd1aeSAssar Westerlund typedef struct { 385e9cd1aeSAssar Westerlund int cnt; 395e9cd1aeSAssar Westerlund char *buf; 405e9cd1aeSAssar Westerlund } BUF; 415e9cd1aeSAssar Westerlund 425e9cd1aeSAssar Westerlund extern int iamremote; 435e9cd1aeSAssar Westerlund 445e9cd1aeSAssar Westerlund BUF *allocbuf (BUF *, int, int); 455e9cd1aeSAssar Westerlund char *colon (char *); 46*ae771770SStanislav Sedov char *unbracket(char *); 475e9cd1aeSAssar Westerlund void lostconn (int); 485e9cd1aeSAssar Westerlund void nospace (void); 495e9cd1aeSAssar Westerlund int okname (char *); 505e9cd1aeSAssar Westerlund void run_err (const char *, ...); 51*ae771770SStanislav Sedov int susystem (char *); 525e9cd1aeSAssar Westerlund void verifydir (char *); 53