1207673Sjoel/* 2181638Skmacy * Copyright (c) 2001 Kungliga Tekniska H�gskolan 3181638Skmacy * (Royal Institute of Technology, Stockholm, Sweden). 4181638Skmacy * All rights reserved. 5181638Skmacy * 6181638Skmacy * Redistribution and use in source and binary forms, with or without 7181638Skmacy * modification, are permitted provided that the following conditions 8181638Skmacy * are met: 9181638Skmacy * 10181638Skmacy * 1. Redistributions of source code must retain the above copyright 11181638Skmacy * notice, this list of conditions and the following disclaimer. 12181638Skmacy * 13181638Skmacy * 2. Redistributions in binary form must reproduce the above copyright 14207673Sjoel * notice, this list of conditions and the following disclaimer in the 15207673Sjoel * documentation and/or other materials provided with the distribution. 16207673Sjoel * 17207673Sjoel * 3. Neither the name of the Institute nor the names of its contributors 18207673Sjoel * may be used to endorse or promote products derived from this software 19207673Sjoel * without specific prior written permission. 20207673Sjoel * 21207673Sjoel * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22207673Sjoel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23207673Sjoel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24207673Sjoel * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25181638Skmacy * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26181638Skmacy * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27181638Skmacy * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28207673Sjoel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29181638Skmacy * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30181638Skmacy * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31216956Srwatson * SUCH DAMAGE. 32216956Srwatson */ 33216956Srwatson 34216956Srwatson/* $Id: rcp_locl.h 15285 2005-05-29 18:24:43Z lha $ */ 35216956Srwatson 36181638Skmacy#ifdef HAVE_CONFIG_H 37181638Skmacy#include <config.h> 38181638Skmacy#endif 39181638Skmacy 40181638Skmacy#include <sys/param.h> 41181638Skmacy#include <sys/types.h> 42181638Skmacy#include <sys/stat.h> 43181638Skmacy#include <sys/time.h> 44181638Skmacy#include <sys/wait.h> 45181638Skmacy 46190627Sdfr#include <ctype.h> 47190627Sdfr#include <dirent.h> 48181638Skmacy#include <err.h> 49181638Skmacy#include <errno.h> 50181638Skmacy#include <fcntl.h> 51181638Skmacy#include <pwd.h> 52181638Skmacy#include <signal.h> 53181638Skmacy#include <stdio.h> 54181638Skmacy#include <stdlib.h> 55181638Skmacy#include <string.h> 56181638Skmacy#include <string.h> 57181638Skmacy#include <unistd.h> 58181638Skmacy 59181638Skmacy#include <roken.h> 60181638Skmacy 61181638Skmacy#include "extern.h" 62181638Skmacy 63181638Skmacy#ifndef _PATH_CP 64181638Skmacy#define _PATH_CP "/bin/cp" 65181638Skmacy#endif 66181638Skmacy#undef _PATH_RSH 67181638Skmacy#define _PATH_RSH BINDIR "/rsh" 68181638Skmacy