extern.h revision 91146
1156952Sume/*- 2156952Sume * Copyright (c) 1991, 1993, 1994 3156952Sume * The Regents of the University of California. All rights reserved. 4156952Sume * 5156952Sume * Redistribution and use in source and binary forms, with or without 6156952Sume * modification, are permitted provided that the following conditions 7156952Sume * are met: 8156952Sume * 1. Redistributions of source code must retain the above copyright 9156952Sume * notice, this list of conditions and the following disclaimer. 10156952Sume * 2. Redistributions in binary form must reproduce the above copyright 11156952Sume * notice, this list of conditions and the following disclaimer in the 12156952Sume * documentation and/or other materials provided with the distribution. 13156952Sume * 3. All advertising materials mentioning features or use of this software 14156952Sume * must display the following acknowledgement: 15156952Sume * This product includes software developed by the University of 16156952Sume * California, Berkeley and its contributors. 17156952Sume * 4. Neither the name of the University nor the names of its contributors 18156952Sume * may be used to endorse or promote products derived from this software 19270838Sume * without specific prior written permission. 20156952Sume * 21156956Sume * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22156956Sume * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23156952Sume * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24156952Sume * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25156952Sume * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26156952Sume * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27156952Sume * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28156952Sume * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29156952Sume * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30156952Sume * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31156952Sume * SUCH DAMAGE. 32156952Sume * 33170244Sume * @(#)extern.h 8.2 (Berkeley) 4/1/94 34156952Sume * $FreeBSD: head/bin/cp/extern.h 91146 2002-02-23 17:05:32Z bde $ 35170244Sume */ 36156952Sume 37170244Sumetypedef struct { 38170244Sume char *p_end; /* pointer to NULL at end of path */ 39170244Sume char *target_end; /* pointer to end of target base */ 40156952Sume char p_path[PATH_MAX]; /* pointer to the start of a path */ 41170244Sume} PATH_T; 42170244Sume 43156952Sumeextern PATH_T to; 44170244Sumeextern int fflag, iflag, pflag; 45156952Sume 46156952Sume__BEGIN_DECLS 47156952Sumeint copy_fifo(struct stat *, int); 48170244Sumeint copy_file(FTSENT *, int); 49156952Sumeint copy_link(FTSENT *, int); 50156952Sumeint copy_special(struct stat *, int); 51156952Sumeint setfile(struct stat *, int); 52156952Sumevoid usage(void); 53156952Sume__END_DECLS 54156952Sume