extern.h revision 1.9
1/*	$NetBSD: extern.h,v 1.9 1997/01/09 20:19:37 tls Exp $	*/
2
3/*-
4 * Copyright (c) 1994 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 *    must display the following acknowledgement:
17 *	This product includes software developed by the University of
18 *	California, Berkeley and its contributors.
19 * 4. Neither the name of the University nor the names of its contributors
20 *    may be used to endorse or promote products derived from this software
21 *    without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 *	@(#)extern.h	8.3 (Berkeley) 10/9/94
36 */
37
38struct timeval;
39struct fd_set;
40
41void    abort_remote __P((FILE *));
42void    abortpt __P(());
43void    abortrecv __P(());
44void    abortsend __P(());
45void	account __P((int, char **));
46int	another __P((int *, char ***, const char *));
47void	blkfree __P((char **));
48void	cd __P((int, char **));
49void	cdup __P((int, char **));
50void	changetype __P((int, int));
51void	cmdabort __P(());
52void	cmdscanner __P((int));
53int	command __P(());
54int	confirm __P((const char *, const char *));
55FILE   *dataconn __P((const char *));
56void	delete __P((int, char **));
57void	disconnect __P((int, char **));
58void	do_chmod __P((int, char **));
59void	do_umask __P((int, char **));
60void	domacro __P((int, char **));
61char   *domap __P((char *));
62void	doproxy __P((int, char **));
63char   *dotrans __P((char *));
64int     empty __P((struct fd_set *, int));
65void	fatal __P((const char *));
66void	get __P((int, char **));
67struct cmd *getcmd __P((const char *));
68int	getit __P((int, char **, int, const char *));
69int	getreply __P((int));
70int	globulize __P((char **));
71char   *gunique __P((const char *));
72void	help __P((int, char **));
73char   *hookup __P((const char *, int));
74void	idle __P((int, char **));
75int     initconn __P((void));
76void	intr __P(());
77void	lcd __P((int, char **));
78int	login __P((const char *));
79void	lostpeer __P(());
80void	lpwd __P((int, char **));
81void	ls __P((int, char **));
82void	mabort __P((int));
83void	macdef __P((int, char **));
84void	makeargv __P((void));
85void	makedir __P((int, char **));
86void	mdelete __P((int, char **));
87void	mget __P((int, char **));
88void	mls __P((int, char **));
89void	modtime __P((int, char **));
90void	mput __P((int, char **));
91char   *onoff __P((int));
92void	newer __P((int, char **));
93void    progressmeter __P((int));
94void	proxabort __P(());
95void    proxtrans __P((const char *, const char *, const char *));
96void    psabort __P(());
97void	psummary __P((int));
98void    pswitch __P((int));
99void    ptransfer __P((int));
100void	put __P((int, char **));
101void	pwd __P((int, char **));
102void	quit __P((int, char **));
103void	quote __P((int, char **));
104void	quote1 __P((const char *, int, char **));
105void    recvrequest __P((const char *, const char *, const char *,
106	    const char *, int));
107void	reget __P((int, char **));
108char   *remglob __P((char **, int));
109off_t	remotesize __P((const char *, int));
110time_t	remotemodtime __P((const char *, int));
111void	removedir __P((int, char **));
112void	renamefile __P((int, char **));
113void    reset __P((int, char **));
114void	restart __P((int, char **));
115void	rmthelp __P((int, char **));
116void	rmtstatus __P((int, char **));
117int	ruserpass __P((const char *, char **, char **, char **));
118void    sendrequest __P((const char *, const char *, const char *, int));
119void	setascii __P((int, char **));
120void	setbell __P((int, char **));
121void	setbinary __P((int, char **));
122void	setcase __P((int, char **));
123void	setcr __P((int, char **));
124void	setdebug __P((int, char **));
125void	setform __P((int, char **));
126void	setftmode __P((int, char **));
127void	setglob __P((int, char **));
128void	sethash __P((int, char **));
129void	setnmap __P((int, char **));
130void	setntrans __P((int, char **));
131void	setpassive __P((int, char **));
132void	setpeer __P((int, char **));
133void	setport __P((int, char **));
134void	setpreserve __P((int, char **));
135void	setprogress __P((int, char **));
136void	setprompt __P((int, char **));
137void	setrunique __P((int, char **));
138void	setstruct __P((int, char **));
139void	setsunique __P((int, char **));
140void	settenex __P((int, char **));
141void	settrace __P((int, char **));
142void	settype __P((int, char **));
143void	setverbose __P((int, char **));
144void	shell __P((int, char **));
145void	site __P((int, char **));
146void	sizecmd __P((int, char **));
147char   *slurpstring __P((void));
148void	status __P((int, char **));
149void	syst __P((int, char **));
150int	togglevar __P((int, char **, int *, const char *));
151void	usage __P(());
152void	user __P((int, char **));
153
154extern jmp_buf	abortprox;
155extern int	abrtflag;
156extern struct	cmd cmdtab[];
157extern FILE	*cout;
158extern int	data;
159extern char    *home;
160extern jmp_buf	jabort;
161extern int	proxy;
162extern char	reply_string[];
163extern off_t	restart_point;
164extern int	NCMDS;
165