xref: /original-bsd/bin/cp/extern.h (revision e58c8952)
1 /*-
2  * Copyright (c) 1991, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.2 (Berkeley) 04/01/94
8  */
9 
10 typedef struct {
11 	char *p_end;			/* pointer to NULL at end of path */
12 	char *target_end;               /* pointer to end of target base */
13 	char p_path[MAXPATHLEN + 1];	/* pointer to the start of a path */
14 } PATH_T;
15 
16 extern PATH_T to;
17 extern uid_t myuid;
18 extern int iflag, pflag, myumask;
19 
20 #include <sys/cdefs.h>
21 
22 __BEGIN_DECLS
23 int	copy_fifo __P((struct stat *, int));
24 int	copy_file __P((FTSENT *, int));
25 int	copy_link __P((FTSENT *, int));
26 int	copy_special __P((struct stat *, int));
27 int	setfile __P((struct stat *, int));
28 void	usage __P((void));
29 __END_DECLS
30