extern.h (76693) | extern.h (78070) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)extern.h 8.2 (Berkeley) 4/1/94 | 1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)extern.h 8.2 (Berkeley) 4/1/94 |
34 * $FreeBSD: head/bin/cp/extern.h 76693 2001-05-16 19:10:40Z imp $ | 34 * $FreeBSD: head/bin/cp/extern.h 78070 2001-06-11 13:57:54Z bde $ |
35 */ 36 37typedef struct { 38 char *p_end; /* pointer to NULL at end of path */ 39 char *target_end; /* pointer to end of target base */ 40 char p_path[PATH_MAX]; /* pointer to the start of a path */ 41} PATH_T; 42 43extern PATH_T to; | 35 */ 36 37typedef struct { 38 char *p_end; /* pointer to NULL at end of path */ 39 char *target_end; /* pointer to end of target base */ 40 char p_path[PATH_MAX]; /* pointer to the start of a path */ 41} PATH_T; 42 43extern PATH_T to; |
44extern uid_t myuid; 45extern int iflag, pflag, fflag, vflag, myumask; | 44extern int iflag, pflag, fflag, vflag; |
46 47#include <sys/cdefs.h> 48 49__BEGIN_DECLS 50int copy_fifo __P((struct stat *, int)); 51int copy_file __P((FTSENT *, int)); 52int copy_link __P((FTSENT *, int)); 53int copy_special __P((struct stat *, int)); 54int setfile __P((struct stat *, int)); 55void usage __P((void)); 56__END_DECLS | 45 46#include <sys/cdefs.h> 47 48__BEGIN_DECLS 49int copy_fifo __P((struct stat *, int)); 50int copy_file __P((FTSENT *, int)); 51int copy_link __P((FTSENT *, int)); 52int copy_special __P((struct stat *, int)); 53int setfile __P((struct stat *, int)); 54void usage __P((void)); 55__END_DECLS |